aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2022-11-28 10:25:51 +0100
committerThomas Huth <thuth@redhat.com>2022-12-15 15:02:35 +0100
commit9bd0bcc38579556bf416139f94fae36467d6b77a (patch)
treef6d669fb90dfa1334fdcf18468c7c1e4ade68aee /scripts
parent8585257f649c4e0ab46f34d5fb46a6c88e5fd7bd (diff)
downloadqemu-9bd0bcc38579556bf416139f94fae36467d6b77a.zip
qemu-9bd0bcc38579556bf416139f94fae36467d6b77a.tar.gz
qemu-9bd0bcc38579556bf416139f94fae36467d6b77a.tar.bz2
scripts/make-release: Add a simple help text for the script
Print a simple help text if the script has been called with the wrong amount of parameters. Message-Id: <20221128092555.37102-2-thuth@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-release6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/make-release b/scripts/make-release
index 05b14ec..4be9b3b 100755
--- a/scripts/make-release
+++ b/scripts/make-release
@@ -10,6 +10,12 @@
# This work is licensed under the terms of the GNU GPLv2 or later.
# See the COPYING file in the top-level directory.
+if [ $# -ne 2 ]; then
+ echo "Usage:"
+ echo " $0 gitrepo version"
+ exit 0
+fi
+
src="$1"
version="$2"
destination=qemu-${version}