Last change
on this file since 24551 was 18487, checked in by stoecker, 15 years ago |
updated
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
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 $mversion = "";
|
---|
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]+)/;
|
---|
22 | $mversion = $1 if $manifest =~ /Plugin-Mainversion: ([^\r\n]+)/;
|
---|
23 | }
|
---|
24 | printf "%-${maxlength}s %28s %6s (%4s)", $plugin,$date,$version,$mversion;
|
---|
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 = "";
|
---|
30 | my $svnmversion = "";
|
---|
31 | $svndate = $1 if $manifest =~ /Plugin-Date: ([^\r\n]+)/;
|
---|
32 | $svnversion = $1 if $manifest =~ /Plugin-Version: ([^\r\n]+)/;
|
---|
33 | $svnmversion = $1 if $manifest =~ /Plugin-Mainversion: ([^\r\n]+)/;
|
---|
34 | printf " SVN: %28s %6s (%4s)%s", $svndate,$svnversion,$svnmversion,
|
---|
35 | ($svndate ne $date || $svnversion ne $version) ? " changed" : "";
|
---|
36 | }
|
---|
37 | printf "\n";
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.