File: deploy_deb.sh

package info (click to toggle)
jamulus 3.9.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 14,804 kB
  • sloc: ansic: 53,095; cpp: 21,041; sh: 4,473; asm: 723; makefile: 361; perl: 264; xml: 36
file content (30 lines) | stat: -rwxr-xr-x 957 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -eu -o pipefail

# Create deb files

TARGET_ARCH="${TARGET_ARCH:-amd64}"

cp -r linux/debian .

# get the jamulus version from pro file
VERSION=$(grep -oP 'VERSION = \K\w[^\s\\]*' Jamulus.pro)

export DEBFULLNAME="Jamulus Development Team" DEBEMAIL=team@jamulus.io

# Generate Changelog
echo -n generating changelog
rm -f debian/changelog
dch --create --package jamulus --empty --newversion "${VERSION}" ''
perl .github/autobuild/extractVersionChangelog.pl ChangeLog "${VERSION}" --line-per-entry | while read -r entry; do
    echo -n .
    dch "$entry"
done
echo

echo "${VERSION} building..."

CC=$(dpkg-architecture -A"${TARGET_ARCH}" -qDEB_TARGET_GNU_TYPE)-gcc
# Note: debuild only handles -a, not the long form --host-arch
# There must be no space after -a either, otherwise debuild cannot recognize it and fails during Changelog checks.
CC="${CC}" debuild --preserve-env -b -us -uc -j -a"${TARGET_ARCH}" --target-arch "${TARGET_ARCH}"