debian-mirror-gitlab/debian/upstream-file-count-check.sh
Praveen Arimbrathodiyil 3222f65db1 not ignoring public
2016-04-04 14:51:16 +05:30

9 lines
375 B
Bash

ucount=$(ls -1 | wc -l)
dcount=$(cat debian/install |cut -d' ' -f1|grep -v debian |wc -l)
ignored=7
if ! [ $(echo "$ucount" - "$dcount"|bc) -eq $ignored ]; then
echo "Found new files added by upstream and not added to debian/install"
echo "Add them to debian/install or adjust 'ignored=${ignored}'"
echo "in debian/upstream-file-count-check.sh as required"
exit 1
fi