From 993c730c7e46288913fd736275c8ce857ea53901 Mon Sep 17 00:00:00 2001 From: Giovanni Pellerano Date: Sun, 27 Oct 2024 12:21:48 +0100 Subject: [PATCH] Separate bump_version.sh and tag_release scripts --- scripts/bump_version.sh | 2 -- scripts/tag_release.sh | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 scripts/tag_release.sh diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh index 1593ca258b..3930f71ddc 100755 --- a/scripts/bump_version.sh +++ b/scripts/bump_version.sh @@ -26,8 +26,6 @@ if [[ "$1" != "" ]]; then -- GlobaLeaks software signing key $(date --rfc-email)\n\n$(cat debian/changelog)" > "$ROOTDIR"/debian/changelog git commit -a -m "Bump to version $1" - - git tag -s v$1 -m 'GlobaLeaks version $1' --force else echo -e "Please specify a version" exit 1 diff --git a/scripts/tag_release.sh b/scripts/tag_release.sh new file mode 100755 index 0000000000..83020725af --- /dev/null +++ b/scripts/tag_release.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# This script tag a new release version +set -e + +if [[ "$1" != "" ]]; then + echo "Tagging version v$1" + + git tag -s v$1 -m 'GlobaLeaks version $1' --force +else + echo -e "Please specify a version" + exit 1 +fi