début d'implémentation de update
This commit is contained in:
parent
9235ce1285
commit
e5b8b81777
44
todo/prel
44
todo/prel
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue