summaryrefslogtreecommitdiffstats
path: root/credits2po
blob: e10dc527556b8c0fee6ea014616d2642da8ade61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/perl

use strict;
use MDK::Common;

output("contributors.pl", 
       join("\n", 
            qq(#/usr/bin/perl
#
# DO NOT ALTER HERE !!!
# THIS IS GENERATED FROM /usr/share/doc/mandrake-release-<RELEASE>/CREDITS
# WHICH IS FILLED FROM THE COOKER WIKI
#
use lib qw(/usr/lib/libDrakX);
use common;
{
),
            (map { 
                my ($contributor, $descr) = split(', ', $_, 2);
                chomp($descr);
                $descr =~ s/(["@$])/\\$1/g;
                qq(\tN("$contributor") => N("$descr"),); 
            } cat_(glob("/usr/share/doc/mandrake-release-*/CREDITS"))),
            "}"
           )
      );