(memory.h): Don't try to read it if it doesn't exist.
authorRichard Stallman <rms@gnu.org>
Tue, 11 May 1993 04:40:17 +0000 (04:40 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 11 May 1993 04:40:17 +0000 (04:40 +0000)
From-SVN: r4420

gcc/fixincludes

index 254bd64059d63d51384c0d028065188a9a9fec6d..35e513c957b740934a3a60c8bc851a366b3aedf5 100755 (executable)
@@ -863,8 +863,8 @@ fi
 # many other systems have similar text but correct versions of the file.
 # To ensure only Sun's is fixed, we grep for a likely unique string.
 file=memory.h
-if egrep '/\*  @\(#\)memory\.h 1\.[2-4] 8./../.. SMI; from S5R2 1\.2   \*/' $file > /dev/null; then
-  if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
+if [ -r $file ] && egrep '/\*  @\(#\)memory\.h 1\.[2-4] 8./../.. SMI; from S5R2 1\.2   \*/' $file > /dev/null; then
+  if [ ! -r ${LIB}/$file ]; then
     cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
     chmod +w ${LIB}/$file 2>/dev/null
     chmod a+r ${LIB}/$file 2>/dev/null