summaryrefslogtreecommitdiffstats
path: root/gcc/fixincludes
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-05-11 04:40:17 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1993-05-11 04:40:17 +0000
commitee6d4b2a72d74858cd345ed1f6de151e642877a8 (patch)
treeefe2dd81293672c0ba91b57ce918e886522190b7 /gcc/fixincludes
parent7b6f576a5c56984278c7d1603d12a9a132492cdc (diff)
downloadppe42-gcc-ee6d4b2a72d74858cd345ed1f6de151e642877a8.tar.gz
ppe42-gcc-ee6d4b2a72d74858cd345ed1f6de151e642877a8.zip
(memory.h): Don't try to read it if it doesn't exist.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4420 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-xgcc/fixincludes4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 254bd64059d..35e513c957b 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -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
OpenPOWER on IntegriCloud