|
|
|
@ -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 |
|
|
|
|