2018-11-08 21:25:13 +05:30
|
|
|
# set -x # use this for debugging
|
|
|
|
|
2017-12-13 10:48:53 +05:30
|
|
|
ucount=$(ls -1a |grep -vx .git | wc -l)
|
2018-06-12 21:00:26 +05:30
|
|
|
dcount=$(cat debian/gitlab.install |cut -d' ' -f1|grep -v debian |wc -l)
|
2018-12-06 13:10:53 +05:30
|
|
|
ignored=32
|
2016-02-13 19:38:52 +05:30
|
|
|
if ! [ $(echo "$ucount" - "$dcount"|bc) -eq $ignored ]; then
|
|
|
|
echo "Found new files added by upstream and not added to debian/install"
|
2018-06-12 21:00:26 +05:30
|
|
|
echo "Add them to debian/gitlab.install or adjust 'ignored=${ignored}'"
|
2018-12-13 14:49:54 +05:30
|
|
|
echo "in debian/upstream-file-count-check.sh as required and update"
|
|
|
|
echo "debian/upstream-file-list"
|
2018-12-06 12:00:26 +05:30
|
|
|
ls -1a |grep -vx .git > debian/upstream-file-list.new
|
2018-12-13 14:49:54 +05:30
|
|
|
diff -u debian/upstream-file-list debian/upstream-file-list.new
|
2016-02-13 19:38:52 +05:30
|
|
|
exit 1
|
|
|
|
fi
|