Changeset 16973 in osm for applications/editors/josm/i18n/launchpad.pl
- Timestamp:
- 2009-08-10T14:13:18+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/launchpad.pl
r16400 r16973 3 3 use strict; 4 4 5 die "URL not given." if $#ARGV != 0;6 5 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"`)) 6 if($#ARGV != 0) 13 7 { 14 my $a=$name; 15 $a =~ s/.*-//; 16 system "mv -v $name po/$a" if -f "po/$a"; 8 warn "URL not given." 9 } 10 else 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 } 17 23 } 18 24 system "ant";
Note:
See TracChangeset
for help on using the changeset viewer.