summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-08-21 15:34:07 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-08-21 15:34:50 -0700
commit891bc9822bdd9893ddf2d4fd65fd53a5da001beb (patch)
tree32edbf675bde8ed4b92caf35f81fa477ad382e9e /build-aux
parent80fccd4290ae134bd1b3d377f134bb9143b68b43 (diff)
downloademacs-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 'build-aux')
-rwxr-xr-xbuild-aux/git-hooks/pre-commit2
-rwxr-xr-xbuild-aux/gitlog-to-emacslog4
2 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/git-hooks/pre-commit b/build-aux/git-hooks/pre-commit
index 548bf933f0c..0fa5837f602 100755
--- a/build-aux/git-hooks/pre-commit
+++ b/build-aux/git-hooks/pre-commit
@@ -28,7 +28,7 @@ exec >&2
# When doing a two-way merge, ignore problems that came from the other
# side of the merge.
head=HEAD
-if test -e "$GIT_DIR"/MERGE_HEAD; then
+if test -r "$GIT_DIR"/MERGE_HEAD; then
merge_heads=`cat "$GIT_DIR"/MERGE_HEAD` || exit
for merge_head in $merge_heads; do
case $head in
diff --git a/build-aux/gitlog-to-emacslog b/build-aux/gitlog-to-emacslog
index 482b8dbe5dc..bced7e49861 100755
--- a/build-aux/gitlog-to-emacslog
+++ b/build-aux/gitlog-to-emacslog
@@ -68,7 +68,7 @@ if [ -f "$output" ]; then
fi
# If this is not a Git repository, just generate an empty ChangeLog.
-test -e .git || {
+test -r .git || {
>"$output"
exit
}
@@ -81,7 +81,7 @@ test -e .git || {
--ignore-line='^; ' --format='%B' \
"$gen_origin..$new_origin" >"ChangeLog.tmp" || exit
-if test -e "ChangeLog.tmp"; then
+if test -r "ChangeLog.tmp"; then
# Fix up bug references.
# This would be better as eg a --transform option to gitlog-to-changelog,