tools/scripts/release.sh
GnomeZworc b0410edec3
Specify work load without git clone
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2024-03-11 14:19:28 +01:00

19 lines
No EOL
565 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}"
}
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main "$@"
[[ "${BASH_SOURCE[0]}" == "" ]] && main "$@"