tester si le paquet est compilable en 2.9

This commit is contained in:
Emmanuel Garette 2022-02-11 11:31:14 +01:00
parent 2a2a93f2e4
commit 7dd78a4f0e
1 changed files with 12 additions and 1 deletions

13
makepkg
View File

@ -21,7 +21,7 @@ else
VERSION=$CURRENT_BRANCH
if [ ! "$CURRENT_SUBBR" = 'master' ]; then
echo "impossible de déterminer la branche"
exit 1
exit 1
fi
ORI_BR=$VERSION/master
fi
@ -38,6 +38,17 @@ echo "attention version $VERSION ($DEPOT)"
DIST_BR=dist/eole/$VERSION/master
git push
git checkout $DIST_BR
if [ $CURRENT_BRANCH = 'master' ]; then
if grep Zgzip debian/rules -q Zgzip debian/rules; then
echo "compilable en 2.9"
else
echo "NON COMPILABLE EN 2.9"
echo "Voir des exemples de modifications ici : https://dev-eole.ac-dijon.fr/issues/33643#note-6"
git checkout $ORI_BR
git branch -d $DIST_BR
exit 1
fi
fi
git pull --rebase
git merge $ORI_BR
git push