aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-01-12 15:04:38 -0800
committerPaul Eggert2017-01-12 15:08:15 -0800
commit70d6f2d14f87ab8fe164e1d461b7a55ed1ca3c62 (patch)
tree45360c60d254451d16faa8d478a8bd08fd4e70f0
parent3713c7a0621f4a5ae73e45c6d0d5c55b154611ad (diff)
downloademacs-70d6f2d14f87ab8fe164e1d461b7a55ed1ca3c62.tar.gz
emacs-70d6f2d14f87ab8fe164e1d461b7a55ed1ca3c62.zip
Restore behavior of ‘./autogen.sh autoconf git’
* autogen.sh: Do both autoconf and git setup when invoked as ‘./autogen.sh autoconf git’. Avoid unnecessary newline in chatter. Mention new --no-check option in usage message. (Bug#25359)
-rwxr-xr-xautogen.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index cb2a9151afe..bb3f8185f79 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -104,27 +104,32 @@ check_version ()
104} 104}
105 105
106do_check=true 106do_check=true
107do_autoconf=true 107do_autoconf=false
108do_git=false 108do_git=false
109 109
110for arg; do 110for arg; do
111 case $arg in 111 case $arg in
112 --help) 112 --help)
113 exec echo "$0: usage: $0 [all|autoconf|git]";; 113 exec echo "$0: usage: $0 [--no-check] [target...]
114 Targets are: all autoconf git";;
114 --no-check) 115 --no-check)
115 do_check=false;; 116 do_check=false;;
116 all) 117 all)
118 do_autoconf=true
117 test -e .git && do_git=true;; 119 test -e .git && do_git=true;;
118 autoconf) 120 autoconf)
119 true;; 121 do_autoconf=true;;
120 git) 122 git)
121 do_autoconf=false
122 do_git=true;; 123 do_git=true;;
123 *) 124 *)
124 echo >&2 "$0: $arg: unknown argument"; exit 1;; 125 echo >&2 "$0: $arg: unknown argument"; exit 1;;
125 esac 126 esac
126done 127done
127 128
129case $do_autoconf,$do_git in
130 false,false)
131 do_autoconf=true;;
132esac
128 133
129# Generate Autoconf and Automake related files, if requested. 134# Generate Autoconf and Automake related files, if requested.
130 135
@@ -143,7 +148,7 @@ if $do_autoconf; then
143 148
144 eval min=\$${sprog}_min 149 eval min=\$${sprog}_min
145 150
146 echo "Checking for $prog (need at least version $min)..." 151 printf '%s' "Checking for $prog (need at least version $min) ... "
147 152
148 check_version $prog $min 153 check_version $prog $min
149 154