diff options
| author | Paul Eggert | 2016-04-13 11:12:15 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-04-13 11:12:39 -0700 |
| commit | 1aebe99145e9ef612cdb272800904e3ba9297196 (patch) | |
| tree | adff82b1ea3fc1406907a1fb561e84d8d9a9dd9a | |
| parent | 7d835d8e792664e201ec50ba5f0a260d91e1fff5 (diff) | |
| download | emacs-1aebe99145e9ef612cdb272800904e3ba9297196.tar.gz emacs-1aebe99145e9ef612cdb272800904e3ba9297196.zip | |
Do not require that .git be a directory
Problem reportyed by Phillip Lord.
* admin/update_autogen, autogen.sh, build-aux/gitlog-to-emacslog:
* configure.ac, make-dist:
Do not require that .git be a directory, as 'git worktree' makes
it a file and not a directory.
| -rwxr-xr-x | admin/update_autogen | 2 | ||||
| -rwxr-xr-x | autogen.sh | 2 | ||||
| -rwxr-xr-x | build-aux/gitlog-to-emacslog | 2 | ||||
| -rw-r--r-- | configure.ac | 4 | ||||
| -rwxr-xr-x | make-dist | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/admin/update_autogen b/admin/update_autogen index 199a3aad093..1e8aae2bd44 100755 --- a/admin/update_autogen +++ b/admin/update_autogen | |||
| @@ -49,7 +49,7 @@ cd ../ | |||
| 49 | 49 | ||
| 50 | if [ -d .bzr ]; then | 50 | if [ -d .bzr ]; then |
| 51 | vcs=bzr | 51 | vcs=bzr |
| 52 | elif [ -d .git ]; then | 52 | elif [ -e .git ]; then |
| 53 | vcs=git | 53 | vcs=git |
| 54 | else | 54 | else |
| 55 | die "Cannot determine vcs" | 55 | die "Cannot determine vcs" |
diff --git a/autogen.sh b/autogen.sh index 904246509fa..2e10a77cb37 100755 --- a/autogen.sh +++ b/autogen.sh | |||
| @@ -330,7 +330,7 @@ fi | |||
| 330 | 330 | ||
| 331 | if test ! -f configure; then | 331 | if test ! -f configure; then |
| 332 | echo "You can now run '$0 autoconf'." | 332 | echo "You can now run '$0 autoconf'." |
| 333 | elif test -d .git && test $git_was_ok = false && test $do_git = false; then | 333 | elif test -e .git && test $git_was_ok = false && test $do_git = false; then |
| 334 | echo "You can now run '$0 git'." | 334 | echo "You can now run '$0 git'." |
| 335 | elif test ! -f config.status || | 335 | elif test ! -f config.status || |
| 336 | test -n "`find src/stamp-h.in -newer config.status`"; then | 336 | test -n "`find src/stamp-h.in -newer config.status`"; then |
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog index 5c187f5eae0..6b9cfc145bc 100755 --- a/build-aux/gitlog-to-emacslog +++ b/build-aux/gitlog-to-emacslog | |||
| @@ -68,7 +68,7 @@ if [ -f "$output" ]; then | |||
| 68 | fi | 68 | fi |
| 69 | 69 | ||
| 70 | # If this is not a Git repository, just generate an empty ChangeLog. | 70 | # If this is not a Git repository, just generate an empty ChangeLog. |
| 71 | test -d .git || { | 71 | test -e .git || { |
| 72 | >"$output" | 72 | >"$output" |
| 73 | exit | 73 | exit |
| 74 | } | 74 | } |
diff --git a/configure.ac b/configure.ac index 790ff84365e..8f311cf7872 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -874,11 +874,11 @@ AC_ARG_ENABLE([gcc-warnings], | |||
| 874 | gl_gcc_warnings=$enableval], | 874 | gl_gcc_warnings=$enableval], |
| 875 | [# By default, use 'warn-only' if it looks like the invoker of 'configure' | 875 | [# By default, use 'warn-only' if it looks like the invoker of 'configure' |
| 876 | # is a developer as opposed to a builder. This is most likely true | 876 | # is a developer as opposed to a builder. This is most likely true |
| 877 | # if GCC is recent enough and there is a .git subdirectory; | 877 | # if GCC is recent enough and there is a .git directory or file; |
| 878 | # however, if there is also a .tarball-version file it is probably | 878 | # however, if there is also a .tarball-version file it is probably |
| 879 | # just a release imported into Git for patch management. | 879 | # just a release imported into Git for patch management. |
| 880 | gl_gcc_warnings=no | 880 | gl_gcc_warnings=no |
| 881 | test -d "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version && | 881 | test -e "$srcdir"/.git && test ! -f "$srcdir"/.tarball-version && |
| 882 | gl_GCC_VERSION_IFELSE([5], [3], [gl_gcc_warnings=warn-only])] | 882 | gl_GCC_VERSION_IFELSE([5], [3], [gl_gcc_warnings=warn-only])] |
| 883 | ) | 883 | ) |
| 884 | 884 | ||
| @@ -284,7 +284,7 @@ echo "Creating top directory: '${tempdir}'" | |||
| 284 | mkdir ${tempdir} | 284 | mkdir ${tempdir} |
| 285 | 285 | ||
| 286 | if [ "$changelog" = yes ]; then | 286 | if [ "$changelog" = yes ]; then |
| 287 | if test -d .git; then | 287 | if test -e .git; then |
| 288 | echo "Making top-level ChangeLog" | 288 | echo "Making top-level ChangeLog" |
| 289 | make ChangeLog CHANGELOG=${tempdir}/ChangeLog || \ | 289 | make ChangeLog CHANGELOG=${tempdir}/ChangeLog || \ |
| 290 | { x=$?; echo "make ChangeLog FAILED (try --no-changelog?)" >&2; exit $x; } | 290 | { x=$?; echo "make ChangeLog FAILED (try --no-changelog?)" >&2; exit $x; } |