hackshell.tpl: Skip links to directories, to avoid removing them.
authorJeffrey A Law <law@cygnus.com>
Sat, 3 Apr 1999 23:36:22 +0000 (23:36 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 3 Apr 1999 23:36:22 +0000 (16:36 -0700)
        * fixinc/hackshell.tpl: Skip links to directories, to avoid
        removing them.
        * fixinc/inclhack.tpl: Likewise.
        * fixinc/fixinc.sh, fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.

From-SVN: r26166

gcc/ChangeLog
gcc/fixinc/fixincl.sh
gcc/fixinc/fixincl.x
gcc/fixinc/hackshell.tpl
gcc/fixinc/inclhack.sh
gcc/fixinc/inclhack.tpl

index fc1c7a84e96e5a6ef930be15091114c2822d5c7a..863d7d2b9677899e829ccc3a5ef23c188488f3e5 100644 (file)
@@ -1,3 +1,10 @@
+Sun Apr  4 00:14:54 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * fixinc/hackshell.tpl: Skip links to directories, to avoid
+       removing them.
+       * fixinc/inclhack.tpl: Likewise.
+       * fixinc/fixinc.sh, fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
+
 Sat Apr  3 23:46:13 1999  David Edelsohn  <edelsohn@gnu.org>
        
        * rs6000.md (addsi3, iorsi3, xorsi3, adddi3, iordi3, xordi3,
index 18f6fc2d92d779515ddb911a1b170fec0d83902a..3fb77965f2a880b904df17fb8e6c5679f74f4464 100755 (executable)
@@ -2,9 +2,9 @@
 #
 # DO NOT EDIT THIS FILE   (fixincl.sh)
 # 
-# It has been autogen-ed  Saturday April  3, 1999 at 05:12:04 PM EST
-# From the definitions    inclhack.def
-# and the template file   inclhack.tpl
+# It has been autogen-ed  Sunday April  4, 1999 at 12:12:26 AM MST
+# From the definitions    /puke/law//egcs/egcs/gcc/fixinc/inclhack.def
+# and the template file   /puke/law//egcs/egcs/gcc/fixinc/inclhack.tpl
 #
 # Install modified versions of certain ANSI-incompatible system header
 # files which are fixed to work correctly with ANSI C and placed in a
index 64cd607b81ca35544214fe7e383634773e3685a9..bf8369c18a33ed559dfeda9cf66b12eed3f78572 100644 (file)
@@ -1,9 +1,9 @@
 /*
  * DO NOT EDIT THIS FILE   (fixincl.x)
  * 
- * It has been autogen-ed  Saturday April  3, 1999 at 05:12:03 PM EST
- * From the definitions    inclhack.def
- * and the template file   fixincl.tpl
+ * It has been autogen-ed  Sunday April  4, 1999 at 12:11:03 AM MST
+ * From the definitions    /puke/law//egcs/egcs/gcc/fixinc/inclhack.def
+ * and the template file   /puke/law//egcs/egcs/gcc/fixinc/fixincl.tpl
  *
  * Install modified versions of certain ANSI-incompatible system header
  * files which are fixed to work correctly with ANSI C and placed in a
index 41db1b912dd59f8a510e1cd8ab7a068fe80b2afe..9e9af4da140840770fb0e261637a791dd35e0dd6 100644 (file)
@@ -8,9 +8,12 @@
   echo Checking header files
   for file in $files; do
 
-    if ( test ! -r ${file} -o \
-    -n "`fgrep 'This file is part of the GNU C Library' ${file}`" )
-    then continue ; fi
+    # Skip unreadable files, symlinks to directories and glibc files
+    if test ! -r "${file}" || test -d "${file}/." \
+       || fgrep 'This file is part of the GNU C Library' "${file}" \
+           > /dev/null 2>&1; then
+      continue
+    fi
 
     fixlist=""
     DESTFILE=${DESTDIR}/`echo ${file} | sed "s;${FIND_BASE}/;;" `
index 63a618d35cd78ee6f956f84335efe24d028476c7..da7d4b215e69babe6afb89c632b3de387e2fa998 100755 (executable)
@@ -2,9 +2,9 @@
 #
 # DO NOT EDIT THIS FILE   (inclhack.sh)
 # 
-# It has been autogen-ed  Saturday April  3, 1999 at 05:12:01 PM EST
-# From the definitions    inclhack.def
-# and the template file   inclhack.tpl
+# It has been autogen-ed  Sunday April  4, 1999 at 12:12:26 AM MST
+# From the definitions    /puke/law//egcs/egcs/gcc/fixinc/inclhack.def
+# and the template file   /puke/law//egcs/egcs/gcc/fixinc/inclhack.tpl
 #
 # Install modified versions of certain ANSI-incompatible system header
 # files which are fixed to work correctly with ANSI C and placed in a
@@ -343,7 +343,7 @@ while [ $# != 0 ]; do
   #
   cd ${INPUT}
   files=`if $LINKS; then
-    find ${FIND_BASE}/. \( -type f -o -type l \) -print
+    find ${FIND_BASE}/. \( -type f -o \( -type l -exec test ! -d {} \; \) \) -print
   else
     find ${FIND_BASE}/. -type f -print
   fi | \
@@ -352,9 +352,12 @@ while [ $# != 0 ]; do
   echo Checking header files
   for file in $files; do
 
-    if ( test ! -r ${file} -o \
-    -n "`fgrep 'This file is part of the GNU C Library' ${file}`" )
-    then continue ; fi
+    # Skip unreadable files, symlinks to directories and glibc files
+    if test ! -r "${file}" || test -d "${file}/." \
+       || fgrep 'This file is part of the GNU C Library' "${file}" \
+           > /dev/null 2>&1; then
+      continue
+    fi
 
     fixlist=""
     DESTFILE=${DESTDIR}/`echo ${file} | sed "s;${FIND_BASE}/;;" `
index ef490f01bbe2f8f323acb82abf381e362c46f38c..376f71dbd15f48c602fd321ddb0010320e4ad9a5 100644 (file)
@@ -334,7 +334,7 @@ while [ $# != 0 ]; do
   cd ${INPUT}[=
 _IF PROGRAM _env ! =]
   files=`if $LINKS; then
-    find ${FIND_BASE}/. \( -type f -o -type l \) -print
+    find ${FIND_BASE}/. \( -type f -o \( -type l -exec test ! -d {} \; \) \) -print
   else
     find ${FIND_BASE}/. -type f -print
   fi | \