source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: The sh(1) "test" builtin on Solaris 10 doesn't have -e, even
@ 2015-11-07 21:31 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-11-07 21:31 UTC (permalink / raw)
  To: source

Log Message:
-----------
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.

Modified Files:
--------------
    mdocml:
        configure

Revision Data
-------------
Index: configure
===================================================================
RCS file: /home/cvs/mdocml/mdocml/configure,v
retrieving revision 1.35
retrieving revision 1.36
diff -Lconfigure -Lconfigure -u -p -r1.35 -r1.36
--- configure
+++ 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
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-07 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07 21:31 mdocml: The sh(1) "test" builtin on Solaris 10 doesn't have -e, even schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).