* elf32-mips.c (mips_elf_relocate_section): If we issue an
[binutils-gdb.git] / bfd / .Sanitize
index 300aad51514305081b7c3932defb016a50ce16a1..98bfba76929e99781ef0ccd8440e6d511b952062 100644 (file)
@@ -185,7 +185,6 @@ evax-emh.c
 evax-etir.c
 evax-misc.c
 evax.h
-filemode.c
 format.c
 freebsd.h
 gen-aout.c
@@ -412,7 +411,7 @@ else
        done
 fi
 
-tx49_files="archures.c bfd-in2.h cpu-mips.c"
+tx49_files="archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
        for i in $tx49_files ; do
                if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
@@ -496,7 +495,7 @@ else
        done
 fi
 
-vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c"
+vr5400_files="ChangeLog archures.c bfd-in2.h bfd-in.h cpu-mips.c elf32-mips.c"
 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
        for i in $vr5400_files ; do
                if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
@@ -524,7 +523,7 @@ else
        done
 fi
 
-vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c"
+vr4320_files="ChangeLog archures.c bfd-in2.h cpu-mips.c elf32-mips.c"
 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
        for i in $vr4320_files ; do
                if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
@@ -614,4 +613,28 @@ for i in * ; do
        fi
 done
 
+
+# This must come after all other sanitizations.  Re-sanitize the .pot
+# file.
+if [ -n "${verbose}" ]; then
+   echo Re-computing files for gettext ...
+fi
+
+if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
+   if [ -n "${verbose}" ]; then
+      echo Caching po/POTFILES.in in .Recover...
+   fi
+   mv po/POTFILES.in po/.Recover
+fi
+find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
+
+if [ -n "${safe}" -a ! -f po/.Recover/bfd.pot ]; then
+   if [ -n "${verbose}" ]; then
+      echo Caching po/bfd.pot in .Recover...
+   fi
+   mv po/bfd.pot po/.Recover
+fi
+# If this fails, Sanitization must fail.
+xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/bfd.pot || exit 1
+
 # eof