move file check to sh file
This commit is contained in:
parent
f656491a73
commit
6e6da4ebfa
2 changed files with 10 additions and 4 deletions
5
debian/rules
vendored
5
debian/rules
vendored
|
@ -11,10 +11,7 @@ override_dh_install:
|
||||||
dh_systemd_enable gitlab.target
|
dh_systemd_enable gitlab.target
|
||||||
dh_systemd_start gitlab.target
|
dh_systemd_start gitlab.target
|
||||||
# Make sure we are installing all required files in debian/install
|
# Make sure we are installing all required files in debian/install
|
||||||
a=$(ls -1 | wc -l); b=$(cat debian/install |cut -d' '\
|
sh debian/upstream-file-count-check.sh
|
||||||
-f1|grep -v debian |wc -l); if ! [ $(echo "$a" - "$b"|bc) -eq 5 ];\
|
|
||||||
then echo "Install newly added files or adjust the count in\
|
|
||||||
debian/rules"; exit 1;fi
|
|
||||||
|
|
||||||
override_dh_installinit:
|
override_dh_installinit:
|
||||||
dh_installinit --no-start
|
dh_installinit --no-start
|
||||||
|
|
9
debian/upstream-file-count-check.sh
vendored
Normal file
9
debian/upstream-file-count-check.sh
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
ucount=$(ls -1 | wc -l)
|
||||||
|
dcount=$(cat debian/install |cut -d' ' -f1|grep -v debian |wc -l)
|
||||||
|
ignored=5
|
||||||
|
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=5'"
|
||||||
|
echo "in debian/upstream-file-count-check.sh as required"
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in a new issue