4 # perverse script to get rid of unwanted jar signatures
6 use File::Temp qw(tempdir);
8 my $tempdir = tempdir( CLEANUP => 1);
14 while (scalar @ARGV) {
15 my $jarfile = shift @ARGV;
16 ((-f $jarfile) and $jarfile=~/.+\.jar/)
17 and push @jarfiles, abs_path($jarfile);
22 while (scalar @jarfiles) {
23 $jarfile = shift @jarfiles;
25 system("jar xf $jarfile");
26 system("mv $jarfile $jarfile.bak");
27 system("find META-INF \\( -name \"*.SF\" \\) -exec rm \\{\\} \\;");
28 system("find META-INF \\( -name \"*.RSA\" \\) -exec rm \\{\\} \\;");
29 system("jar cf $jarfile *");