summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tag-release.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/tag-release.sh b/scripts/tag-release.sh
index 9f7d488f6..10b938bf7 100755
--- a/scripts/tag-release.sh
+++ b/scripts/tag-release.sh
@@ -22,6 +22,9 @@
# git push origin refs/tags/X.Y.Z
#
+SELF="${BASH_SOURCE[0]}"
+SELF_NAME=$(basename "${SELF}")
+
GIT_EXE='git'
function validate_repo()
@@ -85,7 +88,9 @@ function tag_release()
REF=${2}
if [ "x${TAG}" == "x" ]; then
- echo "Missing release tag (e.g. 0.10.0)"
+ echo "Missing release tag (e.g. 1.0.0)"
+ echo "Usage: ${SELF_NAME} tag [commit]"
+ return 1
fi
# bugfix branch name