aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-08-14 05:12:31 +0000
committerRichard Stallman <rms@gnu.org>1992-08-14 05:12:31 +0000
commit8c31e6b602fe470308b4777289f3ce81e34f62a1 (patch)
tree1b70659cf6e2856b7dbb996b7b8ad95ad692e301 /gcc
parent1b971d43064579a0816d48459eab4b4ac96263d1 (diff)
downloadgcc-8c31e6b602fe470308b4777289f3ce81e34f62a1.zip
gcc-8c31e6b602fe470308b4777289f3ce81e34f62a1.tar.gz
gcc-8c31e6b602fe470308b4777289f3ce81e34f62a1.tar.bz2
(finding all .h files): Look for links as well as ordinary files.
(memory.h): Fix versions 1.2 and 1.3 as well as 1.4. From-SVN: r1820
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 8de664e..2bcf7ae 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -152,7 +152,9 @@ while [ $# != 0 ]; do
echo "Finding header files in $1:"
cd ${INPUT}
cd $1
- files=`find . -name '*.h' -type f -print`
+# Check .h files which are symlinks as well as those which are files.
+# A link to a header file will not be processed by anything but this.
+ files=`find . -name '*.h' \( -type f -o -type l \) -print`
echo 'Checking header files:'
# Note that BSD43_* are used on recent MIPS systems.
for file in $files; do
@@ -680,7 +682,7 @@ 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.4 88/08/19 SMI; from S5R2 1.2 \*/' $file > /dev/null; then
+if egrep '/\* @\(#\)memory\.h 1\.[2-4] 8./../.. SMI; from S5R2 1\.2 \*/' $file > /dev/null; then
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null