aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configure
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-11-07 21:31:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-11-07 21:31:22 +0000
commit8765ed73026f2c53a95c98e2c9cfed27a5de90a6 (patch)
tree66b08cecfc74f5f11db449e0a2fe52b5314bea96 /configure
parent91090b741273a8ad6061114d369045a4b16a580c (diff)
downloadmandoc-8765ed73026f2c53a95c98e2c9cfed27a5de90a6.tar.gz
mandoc-8765ed73026f2c53a95c98e2c9cfed27a5de90a6.tar.zst
mandoc-8765ed73026f2c53a95c98e2c9cfed27a5de90a6.zip
The sh(1) "test" builtin on Solaris 10 doesn't have -e,
even though that's required by POSIX. Use -w and -r, that's just as good.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index afc916f5..261d50bb 100755
--- a/configure
+++ b/configure
@@ -16,8 +16,8 @@
set -e
-[ -e config.log ] && mv config.log config.log.old
-[ -e config.h ] && mv config.h config.h.old
+[ -w config.log ] && mv config.log config.log.old
+[ -w config.h ] && mv config.h config.h.old
# Output file descriptor usage:
# 1 (stdout): config.h, Makefile.local
@@ -102,7 +102,7 @@ INSTALL_DATA=
# --- manual settings from configure.local -----------------------------
-if [ -e ./configure.local ]; then
+if [ -r ./configure.local ]; then
echo "configure.local: reading..." 1>&2
echo "configure.local: reading..." 1>&3
cat ./configure.local 1>&3