From 8f50ad90d48b537c93151485b23dd37f6b97f01a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 23:12:05 +0200 Subject: Adding debian version 5.4.1-0.2. Signed-off-by: Daniel Baumann --- debian/autogen.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 debian/autogen.sh (limited to 'debian/autogen.sh') diff --git a/debian/autogen.sh b/debian/autogen.sh new file mode 100755 index 0000000..05a3a9f --- /dev/null +++ b/debian/autogen.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# Generate debian/changelog.upstream, debian/generated-m4.list, +# and debian/generated-po.list. +# +# Uses debian/changelog, the git revision log, and .gitignore +# files from the current checkout. + +set -e + +changelog_needs_update() { + test -e debian/changelog.upstream && + read line < debian/changelog.upstream || + return 0 + + ver=${line#Version } && + ver=${ver%;*} && + test "$ver" != "" || + return 0 + + read line < debian/changelog && + rhs=${line#*(} && + deb_ver=${rhs%)*} && + new_ver=${deb_ver%-*} || + return 0 + + test "$ver" != "$new_ver" +} + +cp -f m4/.gitignore debian/generated-m4.list +cp -f po/.gitignore debian/generated-po.list +sed -n 's,^build-aux/,, p' .gitignore > debian/generated-build-aux.list +! changelog_needs_update || exec sh debian/changelog.upstream.sh -- cgit v1.2.3