aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh47
1 files changed, 4 insertions, 43 deletions
diff --git a/autogen.sh b/autogen.sh
index 4a0fbb791e9..a63c53c903c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -104,21 +104,6 @@ check_version ()
104} 104}
105 105
106 106
107git_config=true
108
109for arg
110do
111 case $arg in
112 --git-config=false) git_config=false;;
113 --git-config=true) git_config=true ;;
114 --help)
115 exec echo "$0: usage: $0 [--help|--git-config=[false|true]]";;
116 *)
117 echo >&2 "$0: $arg: unknown option"; exit 1;;
118 esac
119done
120
121
122cat <<EOF 107cat <<EOF
123Checking whether you have the necessary tools... 108Checking whether you have the necessary tools...
124(Read INSTALL.REPO for more details on building Emacs) 109(Read INSTALL.REPO for more details on building Emacs)
@@ -235,36 +220,12 @@ echo timestamp > src/stamp-h.in || exit
235## Configure Git, if using Git. 220## Configure Git, if using Git.
236if test -d .git && (git status -s) >/dev/null 2>&1; then 221if test -d .git && (git status -s) >/dev/null 2>&1; then
237 222
238 # Like 'git config NAME VALUE', but conditional on --git-config,
239 # verbose on change, and exiting on failure.
240
241 git_config ()
242 {
243 name=$1
244 value=$2
245
246 if $git_config; then
247 ovalue=`git config --get "$name"` && test "$ovalue" = "$value" || {
248 echo "${Configuring_git}git config $name '$value'"
249 Configuring_git=
250 git config "$name" "$value" || exit
251 }
252 fi
253 }
254 Configuring_git='Configuring git...
255'
256
257 # Check hashes when transferring objects among repositories.
258
259 git_config transfer.fsckObjects true
260
261
262 # Configure 'git diff' hunk header format. 223 # Configure 'git diff' hunk header format.
263 224
264 git_config 'diff.elisp.xfuncname' \ 225 git config 'diff.elisp.xfuncname' \
265 '^\(def[^[:space:]]+[[:space:]]+([^()[:space:]]+)' 226 '^\(def[^[:space:]]+[[:space:]]+([^()[:space:]]+)' || exit
266 git_config 'diff.texinfo.xfuncname' \ 227 git config 'diff.texinfo.xfuncname' \
267 '^@node[[:space:]]+([^,[:space:]][^,]+)' 228 '^@node[[:space:]]+([^,[:space:]][^,]+)' || exit
268 229
269 230
270 # Install Git hooks. 231 # Install Git hooks.