From: jprocter Date: Thu, 31 Mar 2005 10:01:04 +0000 (+0000) Subject: utility classes used in build.xml, and a dodgy perl script for X-Git-Tag: Release_2_0~503 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d9ec8d11987c70affbbb863076993a6adfd3467b;p=jalview.git utility classes used in build.xml, and a dodgy perl script for removing the signatures from jars. --- diff --git a/utils/jarunsigner.pl b/utils/jarunsigner.pl new file mode 100755 index 0000000..f18f94c --- /dev/null +++ b/utils/jarunsigner.pl @@ -0,0 +1,32 @@ +#!/usr/bin/perl +use strict; + +# perverse script to get rid of unwanted jar signatures +use Cwd qw(abs_path); +use File::Temp qw(tempdir); + +my $tempdir = tempdir( CLEANUP => 1); + +my $jarfile; + +my @jarfiles; + +while (scalar @ARGV) { + my $jarfile = shift @ARGV; + ((-f $jarfile) and $jarfile=~/.+\.jar/) + and push @jarfiles, abs_path($jarfile); +} +my $pwdir = `pwd`; +chdir($tempdir); + +while (scalar @jarfiles) { + $jarfile = shift @jarfiles; + system("rm -Rf *"); + system("jar xf $jarfile"); + system("mv $jarfile $jarfile.bak"); + system("rm META-INF/*.SF"); + system("rm META-INF/*.RSA"); + system("jar cf $jarfile *"); +} + +chdir($pwdir); diff --git a/utils/jhall.jar b/utils/jhall.jar new file mode 100755 index 0000000..6b894bc Binary files /dev/null and b/utils/jhall.jar differ diff --git a/utils/roxes-ant-tasks-1.2-2004-01-30.jar b/utils/roxes-ant-tasks-1.2-2004-01-30.jar new file mode 100755 index 0000000..8b09fa6 Binary files /dev/null and b/utils/roxes-ant-tasks-1.2-2004-01-30.jar differ