summaryrefslogtreecommitdiffstats
path: root/tools/config-gen
diff options
context:
space:
mode:
authorSami Kerola2014-02-16 16:22:55 +0100
committerKarel Zak2014-03-07 11:45:54 +0100
commit22c3c4f936f74d19e72657620b4f99a36bac555f (patch)
tree62f51361821059e9862068241d2329c42e698074 /tools/config-gen
parentlsblk: add PARTFLAGS column (diff)
downloadkernel-qcow2-util-linux-22c3c4f936f74d19e72657620b4f99a36bac555f.tar.gz
kernel-qcow2-util-linux-22c3c4f936f74d19e72657620b4f99a36bac555f.tar.xz
kernel-qcow2-util-linux-22c3c4f936f74d19e72657620b4f99a36bac555f.zip
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 <kerolasa@iki.fi>
Diffstat (limited to 'tools/config-gen')
-rwxr-xr-xtools/config-gen9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/config-gen b/tools/config-gen
index b7ccadd0a..5febdc466 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