master est maintenant candidat

This commit is contained in:
Emmanuel Garette 2021-07-16 09:20:06 +02:00
parent 1a2883f2fd
commit d03e5703ff

View File

@ -5,6 +5,7 @@ GITPACKAGE=~/git/eole/git-package/git-package
export EDITOR=/bin/true
MASTER=2.8.1
MASTER_DEV=false
MASTER_INSTABLE=2.8
INSTABLE_27=2.7.3
@ -15,25 +16,25 @@ CURRENT_SUBBR=$(echo "$CURRENT_REF" | awk -F'/' '{ print $4 }')
echo $CURRENT_BRANCH
if [ "$CURRENT_BRANCH" = "master" ]; then
VERSION=$MASTER
ORI_BR=master
else
VERSION=$CURRENT_BRANCH
if [ ! "$CURRENT_SUBBR" = 'master' ]; then
echo "impossible de déterminer la branche"
exit 1
fi
ORI_BR=$VERSION/master
fi
echo "attention version $VERSION"
set -e
if [ $VERSION = $MASTER ]; then
ORI_BR=master
if [ $MASTER_DEV = true ] && [ $VERSION = $MASTER ]; then
DEPOT=eole-$MASTER_INSTABLE/unstable
elif [ $VERSION = $INSTABLE_27 ]; then
ORI_BR=$VERSION/master
DEPOT=eole-2.7/unstable
else
ORI_BR=$VERSION/master
DEPOT=eole-$VERSION/proposed-updates
fi
echo "attention version $VERSION ($DEPOT)"
DIST_BR=dist/eole/$VERSION/master
git push
git checkout $DIST_BR