Changeset 10333 in osm for applications/editors/josm/dist
- Timestamp:
- 2008-08-30T16:55:44+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/dist/getversions
r8913 r10333 1 for i in *jar; do echo $i@ `unzip -c $i META-INF/MANIFEST.MF|grep Plugin-Date|cut "-d " -f2`@`unzip -c $i META-INF/MANIFEST.MF|grep Plugin-Version|cut -d: -f2`; done |perl -ne 'chomp;s/\r//; printf "%30s %28s %s\n",split "@"' 1 #! /usr/bin/perl -w 2 3 my $maxlength = 0; 4 my @names = glob "*.jar"; 5 6 foreach my $plugin (@names) 7 { 8 my $l = length($plugin); 9 $maxlength = $l if $l > $maxlength; 10 } 11 12 foreach my $plugin (@names) 13 { 14 my $date = ""; 15 my $version = ""; 16 my $manifest = `unzip -c $plugin META-INF/MANIFEST.MF`; 17 if($manifest) 18 { 19 $date = $1 if $manifest =~ /Plugin-Date: ([^\r\n]+)/; 20 $version = $1 if $manifest =~ /Plugin-Version: ([^\r\n]+)/; 21 } 22 printf "%-${maxlength}s %28s %6s", $plugin,$date,$version; 23 my $svnfile = ".svn/text-base/$plugin.svn-base"; 24 if(-f $svnfile && ($manifest = `unzip -c $svnfile META-INF/MANIFEST.MF`)) 25 { 26 my $svndate = ""; 27 my $svnversion = ""; 28 $svndate = $1 if $manifest =~ /Plugin-Date: ([^\r\n]+)/; 29 $svnversion = $1 if $manifest =~ /Plugin-Version: ([^\r\n]+)/; 30 printf " SVN: %28s %6s%s", $svndate,$svnversion, 31 ($svndate ne $date || $svnversion ne $version) ? " changed" : ""; 32 } 33 printf "\n"; 34 }
Note:
See TracChangeset
for help on using the changeset viewer.