summaryrefslogtreecommitdiffstats
path: root/deployment/funcs_jars_pack_sign.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-14 00:17:03 +0200
committerSven Gothel <[email protected]>2011-09-14 00:17:03 +0200
commit17d64e76cc6b1f6250445b815a94d18d1632731d (patch)
treee7df15508edfe885585bbe18a1d85e76c23d5941 /deployment/funcs_jars_pack_sign.sh
parent5d79c1727d53042b7537d177221c4bc1163bc180 (diff)
New FHS - Add processing of jar/jnlp atomic subfolder; jnlp file exist check; Add prom_promote_demos
Diffstat (limited to 'deployment/funcs_jars_pack_sign.sh')
-rwxr-xr-xdeployment/funcs_jars_pack_sign.sh56
1 files changed, 48 insertions, 8 deletions
diff --git a/deployment/funcs_jars_pack_sign.sh b/deployment/funcs_jars_pack_sign.sh
index 8817575..9406ca1 100755
--- a/deployment/funcs_jars_pack_sign.sh
+++ b/deployment/funcs_jars_pack_sign.sh
@@ -25,16 +25,30 @@ local THISDIR=`pwd`
cd $wsdir/jar
-mkdir orig
-cp -a *jar orig/
-
if [ -z "$JOGAMP_DEPLOYMENT_NO_REPACK" ] ; then
+ mkdir orig
+ cp -a *jar orig/
+
for i in *.jar ; do
echo pack200 --repack $i
pack200 --repack $i
done
fi
+if [ -e atomic ] ; then
+ cd atomic
+ if [ -z "$JOGAMP_DEPLOYMENT_NO_REPACK" ] ; then
+ mkdir orig
+ cp -a *jar orig/
+
+ for i in *.jar ; do
+ echo pack200 --repack $i
+ pack200 --repack $i
+ done
+ fi
+
+fi
+
cd $THISDIR
}
@@ -58,20 +72,38 @@ local THISDIR=`pwd`
cd $wsdir/jar
-mkdir -p DLLS
-mv *natives*.jar DLLS/
-
if [ -z "$JOGAMP_DEPLOYMENT_NO_REPACK" ] ; then
+ mkdir -p DLLS
+ mv *natives*.jar DLLS/
+
for i in *.jar ; do
echo gzip -9 $i to $i.gz
gzip -9 -cv $i > $i.gz
echo pack200 -E9 $i.pack.gz $i
pack200 -E9 $i.pack.gz $i
done
+
+ mv DLLS/* .
+ rm -rf DLLS
fi
-mv DLLS/* .
-rm -rf DLLS
+if [ -e atomic ] ; then
+ cd atomic
+ if [ -z "$JOGAMP_DEPLOYMENT_NO_REPACK" ] ; then
+ mkdir -p DLLS
+ mv *natives*.jar DLLS/
+
+ for i in *.jar ; do
+ echo gzip -9 $i to $i.gz
+ gzip -9 -cv $i > $i.gz
+ echo pack200 -E9 $i.pack.gz $i
+ pack200 -E9 $i.pack.gz $i
+ done
+
+ mv DLLS/* .
+ rm -rf DLLS
+ fi
+fi
cd $THISDIR
@@ -122,6 +154,14 @@ done
mv demo-jars/* .
rm -rf demo-jars
+if [ -e atomic ] ; then
+ cd atomic
+ for i in *.jar ; do
+ echo jarsigner -storetype pkcs12 -keystore $keystore $i \"$signarg\"
+ jarsigner -storetype pkcs12 -keystore $keystore -storepass $storepass $i "$signarg"
+ done
+fi
+
cd $THISDIR
}