début scripts release
This commit is contained in:
parent
1196b2b218
commit
5bd9586272
29
bin_wip/_merge82
Executable file
29
bin_wip/_merge82
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
|
source "$(dirname -- "$0")/../load.sh" || exit 1
|
||||||
|
require: git
|
||||||
|
|
||||||
|
eval "$(source "$MYDIR/_rel74.conf"; echo_setv Source="$DEVELOP")"
|
||||||
|
eval "$(source "$MYDIR/_rel82.conf"; echo_setv Dest="$DEVELOP")"
|
||||||
|
|
||||||
|
Remote=
|
||||||
|
args=(
|
||||||
|
"fusionner la branche $Source dans $Dest"
|
||||||
|
-d:,--chdir:BASEDIR chdir= "répertoire dans lequel se placer avant de lancer les opérations"
|
||||||
|
-o:,--remote Remote= "++spécifier le remote vers lequel pousser les branches"
|
||||||
|
)
|
||||||
|
parse_args "$@"; set -- "${args[@]}"
|
||||||
|
|
||||||
|
if [ -n "$chdir" ]; then
|
||||||
|
cd "$chdir" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
git_check_gitvcs || die "\
|
||||||
|
$(ppath "$(pwd)" ~): ce répertoire n'est pas un dépôt git"
|
||||||
|
git_check_cleancheckout || die "\
|
||||||
|
Impossible de fusionner car il y a des modifications locales.
|
||||||
|
Enregistrer les modifications et réessayez"
|
||||||
|
|
||||||
|
setx branch=git_get_branch
|
||||||
|
|
||||||
|
estep "Merge $Source --> $Dest"
|
62
bin_wip/_rel
Executable file
62
bin_wip/_rel
Executable file
@ -0,0 +1,62 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
|
source "$(dirname -- "$0")/../load.sh" || exit 1
|
||||||
|
require: git
|
||||||
|
|
||||||
|
DEVELOP=develop
|
||||||
|
FEATURE=wip/
|
||||||
|
RELEASE=release-
|
||||||
|
MAIN=master
|
||||||
|
HOTFIX=hotfix-
|
||||||
|
source "$MYDIR/${MYNAME%.sh}.conf"
|
||||||
|
|
||||||
|
function init_action() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
function list_action() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
function release_action() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
chdir=
|
||||||
|
Remote=
|
||||||
|
action=list
|
||||||
|
args=(
|
||||||
|
"faire une nouvelle release"
|
||||||
|
" -rv VERSION"
|
||||||
|
-d:,--chdir:BASEDIR chdir= "répertoire dans lequel se placer avant de lancer les opérations"
|
||||||
|
-o:,--remote Remote= "++spécifier le remote vers lequel pousser les branches"
|
||||||
|
--init action=init "++initialiser les branches $DEVELOP et $MAIN"
|
||||||
|
--list action=list "lister les modifications qui seraient intégrées dans la release"
|
||||||
|
-r,--release action=release "faire la release"
|
||||||
|
-v:,--version Version= "spécifier la version de la release"
|
||||||
|
)
|
||||||
|
parse_args "$@"; set -- "${args[@]}"
|
||||||
|
|
||||||
|
if [ -n "$chdir" ]; then
|
||||||
|
cd "$chdir" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
git_check_gitvcs || die "$(ppath "$(pwd)" ~): ce répertoire n'est pas un dépôt git"
|
||||||
|
setx branch=git_get_branch
|
||||||
|
case "$branch" in
|
||||||
|
"$DEVELOP") current=develop;;
|
||||||
|
"$FEATURE"*) current=feature;;
|
||||||
|
"$RELEASE"*) current=release;;
|
||||||
|
"$MAIN") current=main;;
|
||||||
|
"$HOTFIX"*) current=hotfix;;
|
||||||
|
*) ewarn "$branch: branche courante non reconnue";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case "$action" in
|
||||||
|
init) init_action "$@";;
|
||||||
|
list) list_action "$@";;
|
||||||
|
release)
|
||||||
|
[ -n "$Version" ] || die "Vous devez spécifier la version de la release"
|
||||||
|
release_action "$@"
|
||||||
|
;;
|
||||||
|
esac
|
7
bin_wip/_rel.conf
Normal file
7
bin_wip/_rel.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
|
|
||||||
|
DEVELOP=develop
|
||||||
|
FEATURE=wip/
|
||||||
|
RELEASE=release-
|
||||||
|
MAIN=master
|
||||||
|
HOTFIX=hotfix-
|
1
bin_wip/_rel74
Symbolic link
1
bin_wip/_rel74
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
_rel
|
7
bin_wip/_rel74.conf
Normal file
7
bin_wip/_rel74.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
|
|
||||||
|
DEVELOP=dev74
|
||||||
|
FEATURE=wip74/
|
||||||
|
RELEASE=rel74-
|
||||||
|
MAIN=dist74
|
||||||
|
HOTFIX=hotf74-
|
1
bin_wip/_rel82
Symbolic link
1
bin_wip/_rel82
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
_rel
|
7
bin_wip/_rel82.conf
Normal file
7
bin_wip/_rel82.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
|
|
||||||
|
DEVELOP=dev82
|
||||||
|
FEATURE=wip82/
|
||||||
|
RELEASE=rel82-
|
||||||
|
MAIN=dist82
|
||||||
|
HOTFIX=hotf82-
|
Loading…
Reference in New Issue
Block a user