diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-10 19:43:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-10 19:43:07 +0000 |
commit | 9fd68ec37fb2dc6bf35a900e7a6c0db8191b5a2b (patch) | |
tree | ffb7656ed20f52ba9db0f528cb7c8033a4eef8cc /make-reg-dotc | |
parent | 2e2fd5bba815c45fe40e96cc807e0c0017d4793c (diff) |
"test -e" is documented in the Solaris 2.6 man page, but doesn't seem to
work, and it's not even documented in the Solaris 2.5.1 man page; don't
use "-e" to test for the existence of a file, use "-f", which is
documented in the 2.5.1 man page and works.
svn path=/trunk/; revision=2247
Diffstat (limited to 'make-reg-dotc')
-rwxr-xr-x | make-reg-dotc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/make-reg-dotc b/make-reg-dotc index 9a80a940b1..fb80ef4d6e 100755 --- a/make-reg-dotc +++ b/make-reg-dotc @@ -20,7 +20,7 @@ echo '#include "register.h"' >>register.c-tmp echo 'void register_all_protocols(void) {' >>register.c-tmp for f in "$@" do - if [ -e $f ] + if [ -f $f ] then srcfile=$f else @@ -30,7 +30,7 @@ do done | sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (void); \1 ();}/' >>register.c-tmp for f in "$@" do - if [ -e $f ] + if [ -f $f ] then srcfile=$f else @@ -46,7 +46,7 @@ echo '}' >>register.c-tmp echo 'void register_all_protocol_handoffs(void) {' >>register.c-tmp for f in "$@" do - if [ -e $f ] + if [ -f $f ] then srcfile=$f else @@ -56,7 +56,7 @@ do done | sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (void); \1 ();}/' >>register.c-tmp for f in "$@" do - if [ -e $f ] + if [ -f $f ] then srcfile=$f else |