From b3e89bfa55389cae974c94afba6fb4ce118f75df Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 9 Nov 2010 03:05:17 +0100 Subject: Provide deployment (jnlp) and hudson build aggregation scripts --- deployment/deploy-jar-sign.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 deployment/deploy-jar-sign.sh (limited to 'deployment/deploy-jar-sign.sh') diff --git a/deployment/deploy-jar-sign.sh b/deployment/deploy-jar-sign.sh new file mode 100755 index 0000000..d6291c4 --- /dev/null +++ b/deployment/deploy-jar-sign.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +jarfile=$1 +shift + +keystore=$1 +shift + +storepass=$1 +shift + +signarg=$1 +shift + +if [ -z "$jarfile" -o -z "$keystore" -o -z "$storepass" ] ; then + echo "usage $0 jarfile pkcs12-keystore storepass [signarg]" + exit 1 +fi + +if [ ! -e $jarfile ] ; then + echo $jarfile does not exist + exit 1 +fi + +if [ ! -e $keystore ] ; then + echo $keystore does not exist + exit 1 +fi + +THISDIR=`pwd` + +echo jarsigner -storetype pkcs12 -keystore $keystore $jarfile \"$signarg\" +jarsigner -storetype pkcs12 -keystore $THISDIR/$keystore -storepass $storepass $jarfile "$signarg" + +cd $THISDIR + -- cgit v1.2.3