summaryrefslogtreecommitdiffstats
path: root/tools/tarsource.sh
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2020-09-27 11:46:31 +0200
committerOndřej Surý <ondrej@sury.org>2020-11-19 21:30:06 +0100
commitcace1d9bf178d447599fe7caa5ccad9a89babe03 (patch)
treefbbf9be2efffdc56639373412f522c86ac91ea64 /tools/tarsource.sh
parentdebian: Update tools/build-debian-package.sh to use git-buildpackage (diff)
downloadfrr-cace1d9bf178d447599fe7caa5ccad9a89babe03.tar.xz
frr-cace1d9bf178d447599fe7caa5ccad9a89babe03.zip
debian: Remove the changelog-auto automation in favor of dch
Signed-off-by: Ondřej Surý <ondrej@sury.org>
Diffstat (limited to 'tools/tarsource.sh')
-rwxr-xr-xtools/tarsource.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/tarsource.sh b/tools/tarsource.sh
index 645982ece..b548fb8ac 100755
--- a/tools/tarsource.sh
+++ b/tools/tarsource.sh
@@ -271,17 +271,16 @@ lsfiles="frr-${PACKAGE_VERSION}.tar.$zip"
if $debian; then
if ! $adjchangelog; then
- GIT_DATE=$(git log --format=format:%ad -1 --date=rfc)
- sed -e "s/@DATE@/$GIT_DATE/" \
- < debian/changelog-auto \
- > "$tmpdir/debian/changelog"
+ dch --force-bad-version \
+ --force-distribution \
+ --preserve \
+ --newversion "$DEBVER" \
+ "autoconf changelog entry -- for git autobuilds only."
fi
cat debian/changelog >> "$tmpdir/debian/changelog"
DEBVER="`dpkg-parsechangelog -l\"$tmpdir/debian/changelog\" -SVersion`"
eval $debsrc | tar -cho $taropt \
- --exclude debian/changelog \
- --exclude debian/subdir.am \
-T - -f ../frr_${DEBVER}.debian.tar
# add specially prepared files from above
tar -uf ../frr_${DEBVER}.debian.tar $taropt -C "$tmpdir" debian/changelog