Print a usage message when invoked without parameters.

Thanks Felix Geyer for the tip.
ci/unstable
Lisandro Damián Nicanor Pérez Meyer 6 years ago
parent 6bde31bd62
commit 8951796741

@ -29,6 +29,12 @@
# #
# ./debtoolchainfilegen armhf > cmake_toolchain_armhf.cmake # ./debtoolchainfilegen armhf > cmake_toolchain_armhf.cmake
if [ -z "$1" ]
then
echo "Usage: debtoolchainfilegen (arch) > cmake_toolchain_<arch>.cmake"
exit 1
fi
ARCH=$1 ARCH=$1
DEB_HOST_GNU_TYPE=$(dpkg-architecture -f "-a$1" -qDEB_HOST_GNU_TYPE) DEB_HOST_GNU_TYPE=$(dpkg-architecture -f "-a$1" -qDEB_HOST_GNU_TYPE)

Loading…
Cancel
Save