~noskcaj/ubuntu/vivid/xfce4-netload-plugin/1.2.4

« back to all changes in this revision

Viewing changes to intltool-update.in

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Simon Huggins, Yves-Alexis Perez
  • Date: 2009-03-01 11:39:32 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090301113932-avvah7fe1iuzzo1h
Tags: 0.4.0-1
[ Simon Huggins ]
* debian/control: Move fake Homepage field to a real one now dpkg
  supports it.
* Add Vcs-* headers to debian/control

[ Yves-Alexis Perez ]
* Fake new upstream release to follow package renaming.
* debian/control:
  - update my email address.
  - remove Rudy and Martin from Uploaders. Thanks to them!
  - update standards version to 3.8.0.
  - add dep on ${misc:Depends}. 
* debian/copyright: update dates, and license information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
## Release information
32
32
my $PROGRAM = "intltool-update";
33
 
my $VERSION = "0.34.1";
 
33
my $VERSION = "0.33";
34
34
my $PACKAGE = "intltool";
35
35
 
36
36
## Loaded modules
95
95
$SRCDIR = $ENV{"srcdir"} if $ENV{"srcdir"};
96
96
$POTFILES_in = "<$SRCDIR/POTFILES.in";
97
97
 
98
 
my $devnull = ($^O eq 'MSWin32' ? 'NUL:' : '/dev/null');
99
 
 
100
98
## Handle options
101
99
GetOptions 
102
100
(
444
442
        while (<FILE>) 
445
443
        {
446
444
            # FIXME: share the pattern matching code with intltool-extract
447
 
            if (/\s_[-A-Za-z0-9._:]+\s*=\s*\"([^"]+)\"/ || /<_[^>]+>/ || /translatable=\"yes\"/)
 
445
            if (/\s_(.*)=\"/ || /<_[^>]+>/ || /translatable=\"yes\"/)
448
446
            {
449
447
                if (defined isNotValidMissing (unpack("x3 A*", $file))) {
450
448
                    push @buf_allfiles, unpack("x3 A*", $file) . "\n";
630
628
    my $gettext_support_nonascii = 0;
631
629
 
632
630
    # checks for GNU gettext >= 0.12
633
 
    my $dummy = `$XGETTEXT --version --from-code=UTF-8 >$devnull 2>$devnull`;
 
631
    my $dummy = `$XGETTEXT --version --from-code=UTF-8 >/dev/null 2>/dev/null`;
634
632
    if ($? == 0)
635
633
    {
636
634
        $gettext_support_nonascii = 1;
828
826
 
829
827
    $output_file = "$SRCDIR/$lang.po" if ($output_file eq "");
830
828
 
831
 
    system ("$MSGFMT", "-o", "$devnull", "--verbose", $output_file);
 
829
    system ("$MSGFMT", "-o", "/dev/null", "--statistics", $output_file);
832
830
}
833
831
 
834
832
sub Console_Write_CoverageReport
848
846
    foreach my $lang (@languages)
849
847
    {
850
848
        print "$lang: ";
851
 
        system ("$MSGFMT", "-o", "$devnull", "--verbose", "$SRCDIR/$lang.po");
 
849
        system ("$MSGFMT", "-o", "/dev/null", "--statistics", "$SRCDIR/$lang.po");
852
850
    }
853
851
}
854
852