From e5720ee629fba06bc266265b42eb559150f7d7a3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 28 Apr 2010 05:55:38 +0200 Subject: Integrate deployment scripts. jar: copy-repack200-sign-pack200. jnlp: copy-filter --- make/scripts/deploy-jars-sign.sh | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 make/scripts/deploy-jars-sign.sh (limited to 'make/scripts/deploy-jars-sign.sh') diff --git a/make/scripts/deploy-jars-sign.sh b/make/scripts/deploy-jars-sign.sh new file mode 100755 index 000000000..1a4421aa9 --- /dev/null +++ b/make/scripts/deploy-jars-sign.sh @@ -0,0 +1,47 @@ +#! /bin/sh + +wsdir=$1 +shift + +keystore=$1 +shift + +storepass=$1 +shift + +signarg=$1 +shift + +if [ -z "$wsdir" -o -z "$keystore" -o -z "$storepass" ] ; then + echo "usage $0 webstartdir pkcs12-keystore storepass [signarg]" + exit 1 +fi + +if [ ! -e $wsdir ] ; then + echo $wsdir does not exist + exit 1 +fi + +if [ ! -e $keystore ] ; then + echo $keystore does not exist + exit 1 +fi + +THISDIR=`pwd` + +cd $wsdir + +rm -rf demo-jars +mkdir -p demo-jars +mv jogl.test.jar jogl-demos*jar demo-jars/ + +for i in *.jar ; do + echo jarsigner -storetype pkcs12 -keystore $keystore $i \"$signarg\" + jarsigner -storetype pkcs12 -keystore $THISDIR/$keystore -storepass $storepass $i "$signarg" +done + +mv demo-jars/* . +rm -rf demo-jars + +cd $THISDIR + -- cgit v1.2.3