aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-04-03 23:36:22 +0000
committerJeff Law <law@gcc.gnu.org>1999-04-03 16:36:22 -0700
commit20cc423f21ed764306943044fc0746f7e6f3ea82 (patch)
tree81ce1b3bd51fd0e56ac4f22a9084da2a4b247fb9 /gcc
parent677a9668542f145e5105e761acb0dc8a6458b8a6 (diff)
downloadgcc-20cc423f21ed764306943044fc0746f7e6f3ea82.zip
gcc-20cc423f21ed764306943044fc0746f7e6f3ea82.tar.gz
gcc-20cc423f21ed764306943044fc0746f7e6f3ea82.tar.bz2
hackshell.tpl: Skip links to directories, to avoid removing them.
* 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rwxr-xr-xgcc/fixinc/fixincl.sh6
-rw-r--r--gcc/fixinc/fixincl.x6
-rw-r--r--gcc/fixinc/hackshell.tpl9
-rwxr-xr-xgcc/fixinc/inclhack.sh17
-rw-r--r--gcc/fixinc/inclhack.tpl2
6 files changed, 30 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fc1c7a8..863d7d2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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,
diff --git a/gcc/fixinc/fixincl.sh b/gcc/fixinc/fixincl.sh
index 18f6fc2..3fb7796 100755
--- a/gcc/fixinc/fixincl.sh
+++ b/gcc/fixinc/fixincl.sh
@@ -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
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index 64cd607..bf8369c 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -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
diff --git a/gcc/fixinc/hackshell.tpl b/gcc/fixinc/hackshell.tpl
index 41db1b9..9e9af4d 100644
--- a/gcc/fixinc/hackshell.tpl
+++ b/gcc/fixinc/hackshell.tpl
@@ -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}/;;" `
diff --git a/gcc/fixinc/inclhack.sh b/gcc/fixinc/inclhack.sh
index 63a618d..da7d4b2 100755
--- a/gcc/fixinc/inclhack.sh
+++ b/gcc/fixinc/inclhack.sh
@@ -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}/;;" `
diff --git a/gcc/fixinc/inclhack.tpl b/gcc/fixinc/inclhack.tpl
index ef490f0..376f71d 100644
--- a/gcc/fixinc/inclhack.tpl
+++ b/gcc/fixinc/inclhack.tpl
@@ -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 | \