diff options
author | Dexter Morgan <dmorgan@mageia.org> | 2011-06-02 20:53:20 +0000 |
---|---|---|
committer | Dexter Morgan <dmorgan@mageia.org> | 2011-06-02 20:53:20 +0000 |
commit | 702fc2aeaeac4279675036a59558e65780646b51 (patch) | |
tree | 13cca83b33be751584ede5d014eb2af4af7bb731 /credits2po | |
download | control-center-702fc2aeaeac4279675036a59558e65780646b51.tar control-center-702fc2aeaeac4279675036a59558e65780646b51.tar.gz control-center-702fc2aeaeac4279675036a59558e65780646b51.tar.bz2 control-center-702fc2aeaeac4279675036a59558e65780646b51.tar.xz control-center-702fc2aeaeac4279675036a59558e65780646b51.zip |
Branch for updates
Diffstat (limited to 'credits2po')
-rwxr-xr-x | credits2po | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/credits2po b/credits2po new file mode 100755 index 00000000..fd011bc4 --- /dev/null +++ b/credits2po @@ -0,0 +1,35 @@ +#!/usr/bin/perl + +use strict; +use lib qw(/usr/lib/libDrakX); +use MDK::Common; +use standalone; +use run_program; + +output("contributors.pl", + join("\n", + qq(#/usr/bin/perl +# +# DO NOT ALTER HERE !!! +# THIS IS GENERATED FROM /usr/share/doc/mageia-release-<RELEASE>/CREDITS +# WHICH IS FILLED FROM THE MAGEIA WIKI +# +use lib qw(/usr/lib/libDrakX); +use common; +{ +), + (map { + if (/^\s*\* (.*)$/) { + my ($contributor, $descr) = split(', ', $1, 2); + #if (/^\s*\* (.*), (.*)/) { + chomp($descr); + $descr =~ s/(["@$])/\\$1/g; + join('', qq(\t"$contributor" => ), $descr ? qq(N("$descr"),) : '"",'); + } else { + chomp; + qq(\tN("$_") => "",); + } + } grep { $_ ne "\n" } cat_(glob("/usr/share/doc/mageia-release-*/CREDITS"))), + "}" + ) + ); |