2016-02-13 19:38:52 +05:30
|
|
|
ucount=$(ls -1 | wc -l)
|
|
|
|
dcount=$(cat debian/install |cut -d' ' -f1|grep -v debian |wc -l)
|
2016-02-18 17:30:10 +05:30
|
|
|
ignored=8
|
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"
|
2016-02-18 17:04:24 +05:30
|
|
|
echo "Add them to debian/install or adjust 'ignored=${ignored}'"
|
2016-02-13 19:38:52 +05:30
|
|
|
echo "in debian/upstream-file-count-check.sh as required"
|
|
|
|
exit 1
|
|
|
|
fi
|