master est maintenant candidat

This commit is contained in:
Emmanuel Garette 2021-07-16 09:20:06 +02:00
parent 1a2883f2fd
commit d03e5703ff
1 changed files with 5 additions and 4 deletions

View File

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