aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/deploy-jars-pack200.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make/scripts/deploy-jars-pack200.sh')
-rwxr-xr-xmake/scripts/deploy-jars-pack200.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/make/scripts/deploy-jars-pack200.sh b/make/scripts/deploy-jars-pack200.sh
new file mode 100755
index 000000000..471e8ab7b
--- /dev/null
+++ b/make/scripts/deploy-jars-pack200.sh
@@ -0,0 +1,33 @@
+#! /bin/sh
+
+wsdir=$1
+shift
+
+if [ -z "$wsdir" ] ; then
+ echo usage $0 webstartdir
+ exit 1
+fi
+
+if [ ! -e $wsdir ] ; then
+ echo $wsdir does not exist
+ exit 1
+fi
+
+THISDIR=`pwd`
+
+cd $wsdir
+
+mkdir -p DLLS
+mv *natives*.jar DLLS/
+
+for i in *.jar ; do
+ echo pack200 -E9 $i.pack.gz $i
+ pack200 -E9 $i.pack.gz $i
+done
+
+mv DLLS/* .
+
+rm -rf DLLS
+
+cd $THISDIR
+