[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: check_po_files to clear exec bits and warn on .pot among .po's?
From: Chusslove Illich <caslav.ilic () gmx ! net>
Date: 2005-11-22 13:57:25
Message-ID: 200511221457.27573.caslav.ilic () gmx ! net
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
Sometimes, PO files with executable permission set, or still having
template's .pot extension, escape my attention. Perhaps check_po_files
could provide checks? Patch attached.
--
Chusslove Illich (Часлав Илић)
Serbian KDE translation team
["patch_c1.diff" (text/x-diff)]
Index: check_po_files
===================================================================
--- check_po_files (revision 482275)
+++ check_po_files (working copy)
@@ -503,8 +503,15 @@
print STDERR "ERROR: File $filename is empty! Skipping!\n";
}
elsif (-f $filename && $filename =~ /\.po$/) {
+ if (-x $filename) {
+ system("chmod a-x '$filename'");
+ print STDERR "File $filename had executable bit set, removed.\n";
+ }
&checkfile($filename);
}
+ elsif (-f $filename && $filename =~ /\.pot$/) {
+ print STDERR "File $filename has .pot extension, perhaps it should be renamed?\n";
+ }
}
closedir(DIR);
}
[Attachment #6 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic