first commit
This commit is contained in:
commit
511110c68f
|
@ -0,0 +1,46 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
GITPACKAGE=~/git/eole/git-package/git-package
|
||||
export EDITOR=/bin/true
|
||||
|
||||
MASTER=2.8.0
|
||||
MASTER_INSTABLE=2.8
|
||||
INSTABLE_27=2.7.3
|
||||
|
||||
|
||||
CURRENT_REF=$(git symbolic-ref -q HEAD)
|
||||
CURRENT_BRANCH=$(echo "$CURRENT_REF" | awk -F'/' '{ print $3 }')
|
||||
CURRENT_SUBBR=$(echo "$CURRENT_REF" | awk -F'/' '{ print $4 }')
|
||||
echo $CURRENT_BRANCH
|
||||
if [ "$CURRENT_BRANCH" = "master" ]; then
|
||||
VERSION=$MASTER
|
||||
else
|
||||
VERSION=$CURRENT_BRANCH
|
||||
if [ ! "$CURRENT_SUBBR" = 'master' ]; then
|
||||
echo "impossible de déterminer la branche"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
echo "attention version $VERSION"
|
||||
set -e
|
||||
if [ $VERSION = $MASTER ]; then
|
||||
ORI_BR=master
|
||||
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
|
||||
DIST_BR=dist/eole/$VERSION/master
|
||||
git push
|
||||
git checkout $DIST_BR
|
||||
git pull --rebase
|
||||
git merge $ORI_BR
|
||||
git push
|
||||
|
||||
yes | $GITPACKAGE -b -d $DEPOT
|
||||
git checkout $ORI_BR
|
||||
git branch -d $DIST_BR
|
Loading…
Reference in New Issue