$ wget -P gcc/contrib/ \
http://uclibc.org/~aldot/gcc/gfortran.dg-final.cleanup-mods.awk
$ chmod +x gcc/contrib/gfortran.dg-final.cleanup-mods.awk
$ cd gcc/testsuite
$ $ for i in $(grep --exclude='*.svn*' -rl dg-do gfortran*); do
../contrib/gfortran.dg-final.cleanup-mods.awk $i;done 2> /dev/null

This scripts emits on stdout a diagnostic message about
a) wrong encoding in testcases (CRLF)
b) missing cleanup-module directives

On stderr, this scripts emits sed scripts to automagically
a) fix the wrong encoding
b) add missing cleanup-module directives.

I put it into public domain, but this can be changes if required.
IMHO it would be handy to have this script in gcc/contrib


-- 
           Summary: missing cleanup-modules directive in testsuite/gfortran*
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aldot at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35015

Reply via email to