From: Sami Kerola Date: Sun, 16 Feb 2014 15:22:55 +0000 (+0000) Subject: tools: make config-gen to require build target argument X-Git-Tag: v2.25-rc1~547 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22c3c4f936f74d19e72657620b4f99a36bac555f;p=thirdparty%2Futil-linux.git tools: make config-gen to require build target argument When argument is not supplied help user by telling what arguments can be used. Signed-off-by: Sami Kerola --- diff --git a/tools/config-gen b/tools/config-gen index b7ccadd0a0..5febdc4660 100755 --- a/tools/config-gen +++ b/tools/config-gen @@ -12,6 +12,15 @@ test -f sys-utils/mount.c || { . tools/config-gen-functions.sh +if [ $# -eq 0 ]; then + echo "This script requires at least one of the folloving arguments:" + cd tools/config-gen.d + for i in *.conf; do + echo " ${i%%.conf}" + done + exit 1 +fi + while [ -n "$1" ]; do opts="$opts $(ul_get_configuration tools/config-gen.d/$1.conf)" shift