2021-09-05 02:18:59 +05:30
LC_ALL = C.UTF-8 ls -1a | grep -vx .git | grep -vx .pc | grep -vx _build | grep -vx \* .rej > debian/upstream-file-list.new
2019-02-15 22:04:48 +05:30
if ! diff -u debian/upstream-file-list debian/upstream-file-list.new
then
2019-02-15 20:52:51 +05:30
echo "Upstream added or removed files"
echo "Update 'debian/gitlab.install' and/or 'debian/ignored-file-list'"
echo "\nNewly added files are:"
echo "---------------------"
comm -23 debian/upstream-file-list.new debian/upstream-file-list
echo "---------------------\n"
echo "Removed files are:"
echo "---------------------"
comm -13 debian/upstream-file-list.new debian/upstream-file-list
echo "---------------------"
2019-09-04 22:48:11 +05:30
echo "\nAfter updating the ignore and install files, rename 'debian/upstream-file-list.new' as 'debian/upstream-file-list'. If not using dpkg-buildpackage, generate 'debian/upstream-file-list.new' manually and then rename.\n"
2016-02-13 19:38:52 +05:30
exit 1
2019-02-15 22:04:48 +05:30
fi