Ignore:
Timestamp:
2009-08-10T14:13:18+02:00 (15 years ago)
Author:
stoecker
Message:

updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/launchpad.pl

    r16400 r16973  
    33use strict;
    44
    5 die "URL not given." if $#ARGV != 0;
    65
    7 mkdir "new";
    8 die "Could not change into new data dir." if !chdir "new";
    9 system "wget $ARGV[0]";
    10 system "tar -xf laun*";
    11 chdir "..";
    12 foreach my $name (split("\n", `find new -name "*.po"`))
     6if($#ARGV != 0)
    137{
    14   my $a=$name;
    15   $a =~ s/.*-//;
    16   system "mv -v $name po/$a" if -f "po/$a";
     8    warn "URL not given."
     9}
     10else
     11{
     12    mkdir "new";
     13    die "Could not change into new data dir." if !chdir "new";
     14    system "wget $ARGV[0]";
     15    system "tar -xf laun*";
     16    chdir "..";
     17    foreach my $name (split("\n", `find new -name "*.po"`))
     18    {
     19      my $a=$name;
     20      $a =~ s/.*-//;
     21      system "mv -v $name po/$a" if -f "po/$a";
     22    }
    1723}
    1824system "ant";
Note: See TracChangeset for help on using the changeset viewer.