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}"
|