Extend release script commands

The script contains now the 'prepare' target. It simply stops before
non-local changes starts and could be used to test the script without
any hassle.
This commit is contained in:
Olaf Schulz 2019-01-11 15:36:53 +01:00
parent 12048bb90c
commit 05bf909316
1 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,7 @@ show_help() {
printf "Options:\n"
printf " perform: Perform a release\n"
printf " rollback: Rollback a release\n"
printf " prepare: Like perform, but stop before non-local changes starts.\n"
printf " clean: Cleanup release info (No rollback will be possible afterwards)\n"
printf "$KRST"
}
@ -242,6 +243,9 @@ case "$1" in
rollback)
rollback
;;
prepare) # Do not includes non-local operations
check_clean_state && prepare_release
;;
clean)
clean
;;