'po' files can now also silently change their comment lines
[macros.git] / AutoGen.pm
index d5c3822..5075ee6 100644 (file)
@@ -201,7 +201,7 @@ sub _cleanfiles
                                                Makefile Makefile.in
                                                TAGS tags ID
                                                .deps .libs
                                                Makefile Makefile.in
                                                TAGS tags ID
                                                .deps .libs
-                                               *.[oa] *.l[oa]
+                                               *.[oa] *.l[oa] *.l[oa]T
                                                .cvsignore
 
                                                ./errs*
                                                .cvsignore
 
                                                ./errs*
@@ -411,6 +411,7 @@ my($class,%options)=@_;
                                                                                                        .q< -e '1,/^@@.*@@$$/d'>
                                                                                                        .q< -e '/^[+-]"POT-Creation-Date:/d'>
                                                                                                        .q< -e '/^[^+-]/d'>
                                                                                                        .q< -e '1,/^@@.*@@$$/d'>
                                                                                                        .q< -e '/^[+-]"POT-Creation-Date:/d'>
                                                                                                        .q< -e '/^[^+-]/d'>
+                                                                                                       .q< -e '/^[+-]#/d'>
                                                                                        .q< | wc -l` -eq 0;then>
                                                                        .q< touch --reference=$${lang}.po $${lang}.po~;>
                                                                                        .q< mv -f $${lang}.po~ $${lang}.po;>
                                                                                        .q< | wc -l` -eq 0;then>
                                                                        .q< touch --reference=$${lang}.po $${lang}.po~;>
                                                                                        .q< mv -f $${lang}.po~ $${lang}.po;>