Skip to content

Commit

Permalink
tools: make config-gen to require build target argument
Browse files Browse the repository at this point in the history
When argument is not supplied help user by telling what arguments can be
used.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
  • Loading branch information
kerolasa authored and karelzak committed Mar 7, 2014
1 parent 5a2fd93 commit 22c3c4f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/config-gen
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22c3c4f

Please sign in to comment.