verifier si le fichier debian/compat existe

This commit is contained in:
Emmanuel Garette 2022-06-23 10:09:24 +02:00
parent e15a4ae341
commit 93cf7877f5
1 changed files with 11 additions and 9 deletions

20
makepkg
View File

@ -57,14 +57,16 @@ if [ $CURRENT_BRANCH = 'master' ]; then
else else
echo "systemd ok" echo "systemd ok"
fi fi
if grep -q 1 debian/compat; then if [ -f debian/compat ]; then
echo "bonne version compat" if grep -q 1 debian/compat; then
else echo "bonne version compat"
echo "NON COMPILABLE EN 2.9" else
echo "Il doit y avoir au moins 10 (idéalement 13) dans debian/compat !!!" echo "NON COMPILABLE EN 2.9"
git checkout $ORI_BR > /dev/null 2>&1 echo "Il doit y avoir au moins 10 (idéalement 13) dans debian/compat !!!"
git branch -d $DIST_BR > /dev/null 2>&1 git checkout $ORI_BR > /dev/null 2>&1
exit 1 git branch -d $DIST_BR > /dev/null 2>&1
exit 1
fi
fi fi
if grep -q "with systemd" debian/control; then if grep -q "with systemd" debian/control; then
echo "NON COMPILABLE EN 2.9" echo "NON COMPILABLE EN 2.9"
@ -73,7 +75,7 @@ if [ $CURRENT_BRANCH = 'master' ]; then
git branch -d $DIST_BR > /dev/null 2>&1 git branch -d $DIST_BR > /dev/null 2>&1
exit 1 exit 1
else else
echo "pas de dh-systemd" echo "pas de with systemd"
fi fi
if grep -q dh-systemd debian/control; then if grep -q dh-systemd debian/control; then
echo "NON COMPILABLE EN 2.9" echo "NON COMPILABLE EN 2.9"