Last change
on this file since 25487 was 18487, checked in by stoecker, 15 years ago |
updated
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[10333] | 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 = "";
|
---|
[13588] | 16 | my $mversion = "";
|
---|
[10333] | 17 | my $manifest = `unzip -c $plugin META-INF/MANIFEST.MF`;
|
---|
| 18 | if($manifest)
|
---|
| 19 | {
|
---|
| 20 | $date = $1 if $manifest =~ /Plugin-Date: ([^\r\n]+)/;
|
---|
| 21 | $version = $1 if $manifest =~ /Plugin-Version: ([^\r\n]+)/;
|
---|
[13588] | 22 | $mversion = $1 if $manifest =~ /Plugin-Mainversion: ([^\r\n]+)/;
|
---|
[10333] | 23 | }
|
---|
[13588] | 24 | printf "%-${maxlength}s %28s %6s (%4s)", $plugin,$date,$version,$mversion;
|
---|
[10333] | 25 | my $svnfile = ".svn/text-base/$plugin.svn-base";
|
---|
| 26 | if(-f $svnfile && ($manifest = `unzip -c $svnfile META-INF/MANIFEST.MF`))
|
---|
| 27 | {
|
---|
| 28 | my $svndate = "";
|
---|
| 29 | my $svnversion = "";
|
---|
[18487] | 30 | my $svnmversion = "";
|
---|
[10333] | 31 | $svndate = $1 if $manifest =~ /Plugin-Date: ([^\r\n]+)/;
|
---|
| 32 | $svnversion = $1 if $manifest =~ /Plugin-Version: ([^\r\n]+)/;
|
---|
[18487] | 33 | $svnmversion = $1 if $manifest =~ /Plugin-Mainversion: ([^\r\n]+)/;
|
---|
| 34 | printf " SVN: %28s %6s (%4s)%s", $svndate,$svnversion,$svnmversion,
|
---|
[10333] | 35 | ($svndate ne $date || $svnversion ne $version) ? " changed" : "";
|
---|
| 36 | }
|
---|
| 37 | printf "\n";
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.