début d'implémentation de update

This commit is contained in:
Jephté Clain 2015-03-23 06:21:44 +04:00
parent 9235ce1285
commit e5b8b81777
1 changed files with 34 additions and 10 deletions

View File

@ -130,16 +130,40 @@ git_ensure_gitvcs
setx branch=git_get_branch
if [ "$action" == branch ]; then
:
#setx major=pver -g "" -ux
#setx minor=pver -g "" -uz
#setx patchlevel=pver -g "" -up
#release="release-$minor"
#branches=("release-$major" "release-$minor" "release-$patchlevel" master)
#simple_menu release branches \
# -t "Basculer vers une nouvelle release branch" \
# -m "Veuillez choisir la branche à créer"
if [ "$action" == update ]; then
setx version=pver -g ""
if [ "$" == auto ]; then
# s'il existe déjà une branche de release, prendre celle-là
:
fi
case "$incversion" in
menu)
setx major=pver -s "$version" -ux "${pver_opts[@]}"
setx minor=pver -s "$version" -uz "${pver_opts[@]}"
setx patchlevel=pver -g "$version" -up "${pver_opts[@]}"
release="release-$minor"
branches=("release-$major" "release-$minor" "release-$patchlevel" master)
simple_menu release branches \
-t "Basculer vers une nouvelle release branch" \
-m "Veuillez choisir la branche à créer"
;;
major)
setx major=pver -s "$version" -ux "${pver_opts[@]}"
release="release-$major"
;;
minor)
setx minor=pver -s "$version" -uz "${pver_opts[@]}"
release="release-$minor"
;;
patchlevel)
setx patchlevel=pver -g "$version" -up "${pver_opts[@]}"
release="release-$patchlevel"
;;
esac
set -- "$release" "$1"
action=checkout
fi
if [ "$action" == checkout ]; then