Last change
on this file since 13588 was 13588, checked in by stoecker, 16 years ago |
updated
|
-
Property svn:executable
set to
*
|
File size:
1.0 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 | $svndate = $1 if $manifest =~ /Plugin-Date: ([^\r\n]+)/;
|
---|
31 | $svnversion = $1 if $manifest =~ /Plugin-Version: ([^\r\n]+)/;
|
---|
32 | printf " SVN: %28s %6s%s", $svndate,$svnversion,
|
---|
33 | ($svndate ne $date || $svnversion ne $version) ? " changed" : "";
|
---|
34 | }
|
---|
35 | printf "\n";
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.