init release script

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2024-03-11 13:40:23 +01:00
commit 7271023e95
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

20
scripts/release.sh Executable file
View file

@ -0,0 +1,20 @@
#!/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