1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

* autogen.sh: Simplify argument parsing.

This commit is contained in:
Glenn Morris 2017-01-12 14:06:03 -05:00
parent d40073f017
commit 3713c7a062

View File

@ -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;;