Last change
on this file since 26685 was 26615, checked in by stoecker, 13 years ago |
updated
|
-
Property svn:executable
set to
*
|
File size:
1.3 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]+)/;
|
---|
[26300] | 34 | my $changed = ($svndate ne $date || $svnversion ne $version);
|
---|
[26512] | 35 | my $changedm = $svnmversion ne $mversion;
|
---|
| 36 | printf " SVN: %28s %6s (%4s)%s%s", $svndate,$svnversion,$svnmversion,
|
---|
| 37 | $changed ? " changed" : "", $changedm ? " main" : "";
|
---|
[26615] | 38 | `svn revert $plugin` if !$changed && !$changedm;
|
---|
[10333] | 39 | }
|
---|
| 40 | printf "\n";
|
---|
| 41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.