2 # Generate debian/changelog.upstream, debian/generated-m4.list,
3 # and debian/generated-po.list.
5 # Uses debian/changelog, the git revision log, and .gitignore
6 # files from the current checkout.
10 changelog_needs_update
() {
11 test -e debian
/changelog.upstream
&&
12 read line
< debian
/changelog.upstream ||
15 ver
=${line#Version } &&
20 read line
< debian
/changelog
&&
23 new_ver
=${deb_ver%-*} ||
26 test "$ver" != "$new_ver"
29 cp -f m
4/.gitignore debian
/generated-m4.list
30 cp -f po
/.gitignore debian
/generated-po.list
31 sed -n 's,^build-aux/,, p' .gitignore
> debian
/generated-build-aux.list
32 ! changelog_needs_update ||
exec sh debian
/changelog.upstream.sh