aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-08-20 22:00:31 +0000
committerIan Lance Taylor <ian@airs.com>1998-08-20 22:00:31 +0000
commitcbf40048ae2a14c7d7da7c880f2ef326cbe24383 (patch)
tree9934a86753bff4907d4ae84f7e2451d088fe20bf /ld
parent6e60709bd3f7e5b0df50e652a8c504e2f7098821 (diff)
downloadgdb-cbf40048ae2a14c7d7da7c880f2ef326cbe24383.zip
gdb-cbf40048ae2a14c7d7da7c880f2ef326cbe24383.tar.gz
gdb-cbf40048ae2a14c7d7da7c880f2ef326cbe24383.tar.bz2
check for mentions of sanitized files
Diffstat (limited to 'ld')
-rw-r--r--ld/.Sanitize82
1 files changed, 79 insertions, 3 deletions
diff --git a/ld/.Sanitize b/ld/.Sanitize
index 205dfb3..79361e8 100644
--- a/ld/.Sanitize
+++ b/ld/.Sanitize
@@ -15,6 +15,23 @@
Do-first:
+# Remember the current lists of files in the subdirectories from which
+# we might remove files.
+if test -d emulparams; then
+ ld_emulparams_files=`cd emulparams; echo *`
+else
+ ld_emulparams_files=
+fi
+if test -d emultempl; then
+ ld_emultempl_files=`cd emultempl; echo *`
+else
+ ld_emultempl_files=
+fi
+if test -d scripttempl; then
+ ld_scripttempl_files=`cd scripttempl; echo *`
+else
+ ld_scripttempl_files=
+fi
# All files listed between the "Things-to-keep:" line and the
# "Do-last:" line will be kept. All other files will be removed.
@@ -322,9 +339,68 @@ else
fi
for i in * ; do
- if test ! -d $i && (grep sanitize $i > /dev/null) ; then
- echo '***' Some mentions of Sanitize are still left in $i! 1>&2
- fi
+ if test ! -d $i && (grep sanitize $i > /dev/null) ; then
+ echo '***' Some mentions of Sanitize are still left in ld/$i! 1>&2
+ fi
+done
+
+for lost in .. $ld_emulparams_files; do
+ if test $lost != ..; then
+ if test -f emulparams/$lost; then
+ :
+ else
+ lost2=`echo $lost | sed -e 's/.sh$//'`
+ for i in Makefile.am Makefile.in configure.host configure.tgt configure.in configure; do
+ if fgrep $lost2 ../$i >/dev/null 2>&1; then
+ echo '***' File ld/emulparams/$lost was sanitized out but is still mentioned in ld/$i 1>&2
+ fi
+ done
+ fi
+ fi
+done
+
+for lost in .. $ld_emultempl_files; do
+ if test $lost != ..; then
+ if test -f emultempl/$lost; then
+ :
+ else
+ lost2=`echo $lost | sed -e 's/.em$//'`
+ for i in Makefile.am Makefile.in configure.host configure.tgt configure.in configure; do
+ if fgrep $lost2 ../$i >/dev/null 2>&1; then
+ echo '***' File ld/emultempl/$lost was sanitized out but is still mentioned in ld/$i 1>&2
+ fi
+ done
+ if test -d emulparams; then
+ for i in emulparams/*; do
+ if fgrep $lost2 ../$i >/dev/null 2>&1; then
+ echo '***' File ld/emultempl/$lost was sanitized out but is still mentioned in ld/emulparams/$i 1>&2
+ fi
+ done
+ fi
+ fi
+ fi
+done
+
+for lost in .. $ld_scripttempl_files; do
+ if test $lost != ..; then
+ if test -f scripttempl/$lost; then
+ :
+ else
+ lost2=`echo $lost | sed -e 's/.sc$//'`
+ for i in Makefile.am Makefile.in configure.host configure.tgt configure.in configure; do
+ if fgrep $lost2 ../$i >/dev/null 2>&1; then
+ echo '***' File ld/scripttempl/$lost was sanitized out but is still mentioned in ld/$i 1>&2
+ fi
+ done
+ if test -d emulparams; then
+ for i in emulparams/*; do
+ if fgrep $lost2 ../$i >/dev/null 2>&1; then
+ echo '***' File ld/scripttempl/$lost was sanitized out but is still mentioned in ld/emulparams/$i 1>&2
+ fi
+ done
+ fi
+ fi
+ fi
done
# This must come after all other sanitizations. Re-sanitize the .pot