summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2019-11-04 17:06:40 +0200
committerGitHub <noreply@github.com>2019-11-04 17:06:40 +0200
commite536181ef0452380a3ac26ccccf58e68a3b485eb (patch)
tree77e76adce5881fa2f11d4e02cbe87ad13793b29c
parent2bbb98d60f3ea6e01926eb9ddaa075065d7f1a50 (diff)
parente8e4d6ec038b5c767b4e78a7362fb9749c41af00 (diff)
Merge pull request #5265 from Jafaral/deb-changes
tools: generate .changes file required for deb pkg upload
-rwxr-xr-xtools/tarsource.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/tarsource.sh b/tools/tarsource.sh
index eee2a9739b..4843fe88b0 100755
--- a/tools/tarsource.sh
+++ b/tools/tarsource.sh
@@ -301,6 +301,11 @@ if $debian; then
--format='3.0 (custom)' --target-format='3.0 (quilt)' \
-b . frr_${PACKAGE_VERSION}.orig.tar.$zip frr_${DEBVER}.debian.tar.$zip
+ dpkg-genchanges -sa -S > ../frr_${DEBVER}_source.changes
+
+ test -n "$keyid" && debsign ../frr_${DEBVER}_source.changes -k"$keyid"
+
+ mv ../frr_${DEBVER}_source.changes "$outdir" || true
mv ../frr_${DEBVER}.dsc "$outdir" || true
mv ../frr_${DEBVER}.debian.tar.$zip "$outdir" || true
if test -h ../frr_${PACKAGE_VERSION}.orig.tar.$zip; then
@@ -309,12 +314,12 @@ if $debian; then
ln -s frr-${PACKAGE_VERSION}.tar.$zip "$outdir/frr_${PACKAGE_VERSION}.orig.tar.$zip" || true
cd "$outdir"
- test -n "$keyid" && debsign -k "$keyid" "frr_${DEBVER}.dsc"
lsfiles="$lsfiles \
frr_${DEBVER}.dsc \
frr_${DEBVER}.debian.tar.$zip \
- frr_${PACKAGE_VERSION}.orig.tar.$zip"
+ frr_${PACKAGE_VERSION}.orig.tar.$zip \
+ frr_${DEBVER}_source.changes"
fi
cd "$outdir"