From: keie Date: Mon, 11 Mar 1985 13:10:52 +0000 (+0000) Subject: Now also testing for availability of /tmp and /usr/tmp. X-Git-Tag: release-5-5~5560 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7e6a6f6de23bab04717aacfec9563a8a4d8c3f80;p=ack.git Now also testing for availability of /tmp and /usr/tmp. --- diff --git a/first/first b/first/first index 517285d8e..68b13e53d 100755 --- a/first/first +++ b/first/first @@ -4,6 +4,21 @@ then : else exit 1 fi +: check write-ability of /tmp and /usr/tmp +if ( >/usr/tmp/aaax.$$ ) +then + rm /usr/tmp/aaax.$$ +else + echo /usr/tmp must exist and be writable. + exit 2 +fi +if ( >/tmp/aaax.$$ ) +then + rm /tmp/aaax.$$ +else + echo /tmp must exist and be writable. + exit 2 +fi : set ACK HOME Directory in ../h/em_path.h rm -f em_path.h sed -e "/^#define[ ]*EM_DIR/s@\".*\"@\"`cd .. ; pwd`\"@" <../h/em_path.h >em_path.h