scripts/make-release: Add a simple help text for the script
authorThomas Huth <thuth@redhat.com>
Mon, 28 Nov 2022 09:25:51 +0000 (10:25 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 15 Dec 2022 14:02:35 +0000 (15:02 +0100)
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>
scripts/make-release

index 05b14ecc95ebe23dfe3c00be65142dced2f0db5b..4be9b3b9ce141ca7c3bcc02bd33737b0efe57f1e 100755 (executable)
 # 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}