aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-08-20 21:58:15 +0000
committerIan Lance Taylor <ian@airs.com>1998-08-20 21:58:15 +0000
commit6e60709bd3f7e5b0df50e652a8c504e2f7098821 (patch)
tree948c5e90fe87bf9129be299052b7354c2d854c91 /gas
parentbd163c91c66ef8f34756f305f99030f0daa003b2 (diff)
downloadgdb-6e60709bd3f7e5b0df50e652a8c504e2f7098821.zip
gdb-6e60709bd3f7e5b0df50e652a8c504e2f7098821.tar.gz
gdb-6e60709bd3f7e5b0df50e652a8c504e2f7098821.tar.bz2
rework last patch
Diffstat (limited to 'gas')
-rw-r--r--gas/.Sanitize23
-rw-r--r--gas/config/.Sanitize12
2 files changed, 23 insertions, 12 deletions
diff --git a/gas/.Sanitize b/gas/.Sanitize
index b3df631..b90deef 100644
--- a/gas/.Sanitize
+++ b/gas/.Sanitize
@@ -22,6 +22,13 @@ for d in obsolete regress regress.m68k testscripts ; do
fi
done
+# Remember the current list of files in config.
+if test -d config; then
+ gas_config_files=`cd config; echo *`
+else
+ gas_config_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.
# Directories listed in this section will have their own Sanitize
@@ -537,6 +544,22 @@ for lost in .. $lose_these_too; do
fi
done
+# Check each file we removed from gas/config, and make sure it is not
+# mentioned in Makefiles or configure files.
+for lost in .. $gas_config_files; do
+ if test $lost != ..; then
+ if test -f config/$lost; then
+ :
+ else
+ for i in Makefile.am Makefile.in configure.in configure; do
+ if fgrep $lost $i >/dev/null 2>&1; then
+ echo '***' File gas/config/$lost was sanitized out but is still mentioned in gas/$i 1>&2
+ fi
+ done
+ fi
+ fi
+done
+
# This must come after all other sanitizations. Re-sanitize the .pot
# file.
if [ -n "${verbose}" ]; then
diff --git a/gas/config/.Sanitize b/gas/config/.Sanitize
index a2fd7a8..5d2c7f0 100644
--- a/gas/config/.Sanitize
+++ b/gas/config/.Sanitize
@@ -522,16 +522,4 @@ for i in * ; do
fi
done
-for lost in .. $lose_these_too; do
- if test $lost != ..; then
- for i in Makefile.am Makefile.in configure.in configure; do
- if test -f ../$i; then
- if fgrep $lost ../$i >/dev/null 2>&1; then
- echo '***' File gas/config/$lost was sanitized out but is still mentioned in gas/$i 1>&2
- fi
- fi
- done
- fi
-done
-
# eof