tools/scripts/release.sh
GnomeZworc 7271023e95
init release script
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2024-03-11 13:40:23 +01:00

20 lines
No EOL
533 B
Bash
Executable file

#!/bin/bash
main () {
[[ -f ./libs/shflags ]] && . ./libs/shflags || eval "$(curl --silent https://gitlab.g3e.fr/h6n/tools/-/raw/main/libs/shflags)"
DEFINE_string 'tag' 'v0.0.0' 'region cible' 't'
DEFINE_string 'name' 'totor' 'region cible' 'n'
DEFINE_boolean 'dryrun' false 'enable dry-run mode' 'd'
FLAGS "$@" || exit $?
eval set -- "${FLAGS_ARGV}"
echo "${FLAGS_tag} - ${FLAGS_name} . ${FLAGS_dryrun}"
}
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
main "$@"
fi