mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* autogen.sh: Simplify argument parsing.
This commit is contained in:
parent
d40073f017
commit
3713c7a062
1 changed files with 4 additions and 6 deletions
10
autogen.sh
10
autogen.sh
|
|
@ -104,8 +104,7 @@ check_version ()
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check=true
|
do_check=true
|
||||||
do_autoconf=false
|
do_autoconf=true
|
||||||
test $# -eq 0 && do_autoconf=true
|
|
||||||
do_git=false
|
do_git=false
|
||||||
|
|
||||||
for arg; do
|
for arg; do
|
||||||
|
|
@ -113,14 +112,13 @@ for arg; do
|
||||||
--help)
|
--help)
|
||||||
exec echo "$0: usage: $0 [all|autoconf|git]";;
|
exec echo "$0: usage: $0 [all|autoconf|git]";;
|
||||||
--no-check)
|
--no-check)
|
||||||
do_check=false
|
do_check=false;;
|
||||||
test $# -eq 1 && do_autoconf=true;;
|
|
||||||
all)
|
all)
|
||||||
do_autoconf=true
|
|
||||||
test -e .git && do_git=true;;
|
test -e .git && do_git=true;;
|
||||||
autoconf)
|
autoconf)
|
||||||
do_autoconf=true;;
|
true;;
|
||||||
git)
|
git)
|
||||||
|
do_autoconf=false
|
||||||
do_git=true;;
|
do_git=true;;
|
||||||
*)
|
*)
|
||||||
echo >&2 "$0: $arg: unknown argument"; exit 1;;
|
echo >&2 "$0: $arg: unknown argument"; exit 1;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue