build.sh: fix dpkg-source / quilt 'version does not contain a revision' error

This commit is contained in:
Benjamin Renard 2023-07-10 12:47:33 +02:00
parent 3a443e1fa5
commit e38e5b10a7
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -78,6 +78,10 @@ else
echo "Use debian codename from environment ($DEBIAN_CODENAME)"
fi
# Compute debian package version
DEB_VERSION_SUFFIX="-1"
DEB_VERSION="$VERSION$DEB_VERSION_SUFFIX"
echo "Generate debian changelog using gitdch..."
GITDCH_ARGS=('--verbose')
[ -n "$QUIET_ARG" ] && GITDCH_ARGS=('--warning')
@ -93,7 +97,8 @@ then
fi
$GITDCH \
--package-name mylib \
--version "${VERSION}" \
--version "${DEB_VERSION}" \
--version-suffix "${DEB_VERSION_SUFFIX}" \
--code-name $DEBIAN_CODENAME \
--output debian/changelog \
--release-notes ../../dist/release_notes.md \