From 429bccf3a6b82327339e10a11a90e509b5911f63 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Thu, 27 May 2021 15:05:57 +0200 Subject: [PATCH] Use dch instead of hack to generate changelog See: https://github.com/nefarius2001/jamulus/blob/autobuild/stable2/distributions/build-debian-package-auto.sh --- distributions/build-debian-package-auto.sh | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/distributions/build-debian-package-auto.sh b/distributions/build-debian-package-auto.sh index e18ae6084f..eb9ebe4822 100755 --- a/distributions/build-debian-package-auto.sh +++ b/distributions/build-debian-package-auto.sh @@ -2,30 +2,18 @@ # Create deb files -# set armhf -#sudo dpkg --add-architecture armhf - cp -r debian .. cd .. # get the jamulus version from pro file VERSION=$(cat Jamulus.pro | grep -oP 'VERSION = \K\w[^\s\\]*') -# patch changelog (with hack) - -DATE=$(date "+%a, %d %b %Y %T" ) -echo "jamulus (${VERSION}-0) UNRELEASED; urgency=medium" > debian/changelog -echo "" >> debian/changelog -perl .github/actions_scripts/getChangelog.pl ChangeLog ${VERSION} >> debian/changelog -echo "" >> debian/changelog -echo " -- GitHubActions ${DATE} +0001" >> debian/changelog -echo "" >> debian/changelog -cat distributions/debian/changelog >> debian/changelog +# Generate Changelog -# patch the control file -# cp the modified control file here +CHANGELOGCONTENT="$(perl .github/actions_scripts/getChangelog.pl ChangeLog ${VERSION})" -cp distributions/autobuilddeb/control debian/control +# might be improved by looping through CHANGELOGCONTENT +dch "${CHANGELOGCONTENT}" -v "${VERSION}" echo "${VERSION} building..."