From 895179674130d73fc768dc79ef3dc47b72b5710a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lisandro=20Dami=C3=A1n=20Nicanor=20P=C3=A9rez=20Meyer?= Date: Wed, 14 Nov 2018 10:39:45 -0300 Subject: [PATCH] Print a usage message when invoked without parameters. Thanks Felix Geyer for the tip. --- debian/debtoolchainfilegen | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/debtoolchainfilegen b/debian/debtoolchainfilegen index 769157469..27cf8eeb2 100755 --- a/debian/debtoolchainfilegen +++ b/debian/debtoolchainfilegen @@ -29,6 +29,12 @@ # # ./debtoolchainfilegen armhf > cmake_toolchain_armhf.cmake +if [ -z "$1" ] +then + echo "Usage: debtoolchainfilegen (arch) > cmake_toolchain_.cmake" + exit 1 +fi + ARCH=$1 DEB_HOST_GNU_TYPE=$(dpkg-architecture -f "-a$1" -qDEB_HOST_GNU_TYPE)