diff options
author | Sven Gothel <[email protected]> | 2010-04-28 07:05:07 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-04-28 07:05:07 +0200 |
commit | 9346e4f91dc468730efac8ad6f1d9d8024e8e93b (patch) | |
tree | 756d532b60ee805c87833105e6ae0a43536c1a06 /make/scripts | |
parent | e5720ee629fba06bc266265b42eb559150f7d7a3 (diff) |
Fix privileged access (applet)
Diffstat (limited to 'make/scripts')
-rwxr-xr-x | make/scripts/deploy-jar-sign.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/make/scripts/deploy-jar-sign.sh b/make/scripts/deploy-jar-sign.sh new file mode 100755 index 000000000..d6291c45c --- /dev/null +++ b/make/scripts/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 + |