Commit 3713c7a0 authored by Glenn Morris's avatar Glenn Morris

* autogen.sh: Simplify argument parsing.

parent d40073f0
......@@ -104,8 +104,7 @@ check_version ()
}
do_check=true
do_autoconf=false
test $# -eq 0 && do_autoconf=true
do_autoconf=true
do_git=false
for arg; do
......@@ -113,14 +112,13 @@ for arg; do
--help)
exec echo "$0: usage: $0 [all|autoconf|git]";;
--no-check)
do_check=false
test $# -eq 1 && do_autoconf=true;;
do_check=false;;
all)
do_autoconf=true
test -e .git && do_git=true;;
autoconf)
do_autoconf=true;;
true;;
git)
do_autoconf=false
do_git=true;;
*)
echo >&2 "$0: $arg: unknown argument"; exit 1;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment