diff options
author | Sven Gothel <[email protected]> | 2009-10-06 00:04:24 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-10-06 00:04:24 -0700 |
commit | 20c6d89bfc4f72144b8bcc48839da7ef9bc40681 (patch) | |
tree | f5bd470cfd5a4a91a682b9628956fba0b29cf025 /make | |
parent | e8fbf3c0738c39005036c50e74dd20e4956f372f (diff) |
Work on test webstart deploy scripts ..
Diffstat (limited to 'make')
-rwxr-xr-x | make/deploy-jars-webstarttest.sh | 15 | ||||
-rwxr-xr-x | make/deploy-jars-webstarttest_pack200.sh | 43 | ||||
-rwxr-xr-x | make/deploy-jnlp-webstarttest.sh | 15 |
3 files changed, 63 insertions, 10 deletions
diff --git a/make/deploy-jars-webstarttest.sh b/make/deploy-jars-webstarttest.sh index 861e638b1..9f38c8e28 100755 --- a/make/deploy-jars-webstarttest.sh +++ b/make/deploy-jars-webstarttest.sh @@ -3,8 +3,11 @@ joglbuilddir=$1 shift -if [ -z "$joglbuilddir" ] ; then - echo usage $0 jogl-builddir +wsdir=$1 +shift + +if [ -z "$joglbuilddir" -o -z "$wsdir" ] ; then + echo usage $0 jogl-builddir webstartdir exit 1 fi @@ -13,6 +16,11 @@ if [ ! -e $joglbuilddir ] ; then exit 1 fi +if [ ! -e $wsdir ] ; then + echo $wsdir does not exist + exit 1 +fi + builddirbase=`basename $joglbuilddir` joglroot=`dirname $joglbuilddir` gluegenroot=$joglroot/../gluegen @@ -37,9 +45,6 @@ if [ ! -e $jnlpdir_demos ] ; then exit 1 fi -wsdir=$joglbuilddir/webstart -mkdir -p $wsdir - cp -v $gluegenroot/$builddirbase/*.jar $wsdir cp -v $gluegenroot/$builddirbase/obj/lib*.so $wsdir diff --git a/make/deploy-jars-webstarttest_pack200.sh b/make/deploy-jars-webstarttest_pack200.sh new file mode 100755 index 000000000..fd9e215a9 --- /dev/null +++ b/make/deploy-jars-webstarttest_pack200.sh @@ -0,0 +1,43 @@ +#! /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 *linux*.jar DLLS/ +mv *windows*.jar DLLS/ +mv *macosx*.jar DLLS/ + +mkdir -p JAVAS +mv *.jar JAVAS + +cd JAVAS + +for i in *.jar ; do + echo pack200 -E9 $i.pack.gz $i + pack200 -E9 $i.pack.gz $i +done + +cd $wsdir + +mv JAVAS/* . +mv DLLS/* . + +rm -rf JAVAS DLLS + +cd $THISDIR + diff --git a/make/deploy-jnlp-webstarttest.sh b/make/deploy-jnlp-webstarttest.sh index dd3cb0f1f..26a0f8b35 100755 --- a/make/deploy-jnlp-webstarttest.sh +++ b/make/deploy-jnlp-webstarttest.sh @@ -6,8 +6,11 @@ shift joglbuilddir=$1 shift -if [ -z "$url" -o -z "$joglbuilddir" ] ; then - echo usage $0 codebase-url jogl-builddir +wsdir=$1 +shift + +if [ -z "$url" -o -z "$joglbuilddir" -o -z "$wsdir" ] ; then + echo usage $0 codebase-url jogl-builddir webstartdir exit 1 fi @@ -16,6 +19,11 @@ if [ ! -e $joglbuilddir ] ; then exit 1 fi +if [ ! -e $wsdir ] ; then + echo $wsdir does not exist + exit 1 +fi + builddirbase=`basename $joglbuilddir` joglroot=`dirname $joglbuilddir` gluegenroot=$joglroot/../gluegen @@ -40,9 +48,6 @@ if [ ! -e $jnlpdir_demos ] ; then exit 1 fi -wsdir=$joglbuilddir/webstart -mkdir -p $wsdir - cp -v $jnlpdir_demos/*.html $wsdir uri_esc=`echo $url | sed 's/\//\\\\\//g'` |