diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-21 15:34:07 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-21 15:34:50 -0700 |
commit | 891bc9822bdd9893ddf2d4fd65fd53a5da001beb (patch) | |
tree | 32edbf675bde8ed4b92caf35f81fa477ad382e9e /autogen.sh | |
parent | 80fccd4290ae134bd1b3d377f134bb9143b68b43 (diff) | |
download | emacs-891bc9822bdd9893ddf2d4fd65fd53a5da001beb.tar.gz |
Port /bin/sh scripts to Solaris 10
Its /bin/sh builtin ‘test’ command does not support -e.
* autogen.sh, build-aux/git-hooks/pre-commit:
* build-aux/gitlog-to-emacslog, make-dist:
Use test -r, not test -e.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh index d454e41ea75..0d00d56762a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -115,7 +115,7 @@ for arg; do do_check=false;; all) do_autoconf=true - test -e .git && do_git=true;; + test -r .git && do_git=true;; autoconf) do_autoconf=true;; git) @@ -128,7 +128,7 @@ done case $do_autoconf,$do_git in false,false) do_autoconf=true - test -e .git && do_git=true;; + test -r .git && do_git=true;; esac # Generate Autoconf-related files, if requested. @@ -294,7 +294,7 @@ git_config () # Get location of Git's common configuration directory. For older Git # versions this is just '.git'. Newer Git versions support worktrees. -{ test -e .git && +{ test -r .git && git_common_dir=`git rev-parse --no-flags --git-common-dir 2>/dev/null` && test -n "$git_common_dir" } || git_common_dir=.git @@ -377,7 +377,7 @@ fi if test ! -f configure; then echo "You can now run '$0 autoconf'." -elif test -e .git && test $git_was_ok = false && test $do_git = false; then +elif test -r .git && test $git_was_ok = false && test $do_git = false; then echo "You can now run '$0 git'." elif test ! -f config.status || test -n "`find configure src/config.in -newer config.status`"; then |