From d856ab6dd22f4fcabdc0df9936ce68cd1f68ac55 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 14 Sep 2009 12:14:00 -0700 Subject: Add local webstart test deploy scripts --- make/deploy-jars-webstarttest.sh | 55 +++++++++++++++++++++++++++++++ make/deploy-jnlp-webstarttest.sh | 71 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100755 make/deploy-jars-webstarttest.sh create mode 100755 make/deploy-jnlp-webstarttest.sh (limited to 'make') diff --git a/make/deploy-jars-webstarttest.sh b/make/deploy-jars-webstarttest.sh new file mode 100755 index 000000000..861e638b1 --- /dev/null +++ b/make/deploy-jars-webstarttest.sh @@ -0,0 +1,55 @@ +#! /bin/sh + +joglbuilddir=$1 +shift + +if [ -z "$joglbuilddir" ] ; then + echo usage $0 jogl-builddir + exit 1 +fi + +if [ ! -e $joglbuilddir ] ; then + echo $joglbuilddir does not exist + exit 1 +fi + +builddirbase=`basename $joglbuilddir` +joglroot=`dirname $joglbuilddir` +gluegenroot=$joglroot/../gluegen +demosroot=$joglroot/../jogl-demos + +jnlpdir_gluegen=$gluegenroot/jnlp-files +jnlpdir_jogl=$joglroot/jnlp-files +jnlpdir_demos=$demosroot/jnlp-files + +if [ ! -e $jnlpdir_gluegen ] ; then + echo $jnlpdir_gluegen does not exist + exit 1 +fi + +if [ ! -e $jnlpdir_jogl ] ; then + echo $jnlpdir_jogl does not exist + exit 1 +fi + +if [ ! -e $jnlpdir_demos ] ; then + echo $jnlpdir_demos does not exist + exit 1 +fi + +wsdir=$joglbuilddir/webstart +mkdir -p $wsdir + +cp -v $gluegenroot/$builddirbase/*.jar $wsdir +cp -v $gluegenroot/$builddirbase/obj/lib*.so $wsdir + +cp -v $joglbuilddir/nativewindow/*.jar $wsdir +cp -v $joglbuilddir/jogl/*.jar $wsdir +cp -v $joglbuilddir/newt/*.jar $wsdir + +cp -v $joglbuilddir/nativewindow/obj/lib*.so $wsdir +cp -v $joglbuilddir/jogl/obj/lib*.so $wsdir +cp -v $joglbuilddir/newt/obj/lib*.so $wsdir + +cp -v $demosroot/$builddirbase/*.jar $wsdir + diff --git a/make/deploy-jnlp-webstarttest.sh b/make/deploy-jnlp-webstarttest.sh new file mode 100755 index 000000000..dd3cb0f1f --- /dev/null +++ b/make/deploy-jnlp-webstarttest.sh @@ -0,0 +1,71 @@ +#! /bin/sh + +url=$1 +shift + +joglbuilddir=$1 +shift + +if [ -z "$url" -o -z "$joglbuilddir" ] ; then + echo usage $0 codebase-url jogl-builddir + exit 1 +fi + +if [ ! -e $joglbuilddir ] ; then + echo $joglbuilddir does not exist + exit 1 +fi + +builddirbase=`basename $joglbuilddir` +joglroot=`dirname $joglbuilddir` +gluegenroot=$joglroot/../gluegen +demosroot=$joglroot/../jogl-demos + +jnlpdir_gluegen=$gluegenroot/jnlp-files +jnlpdir_jogl=$joglroot/jnlp-files +jnlpdir_demos=$demosroot/jnlp-files + +if [ ! -e $jnlpdir_gluegen ] ; then + echo $jnlpdir_gluegen does not exist + exit 1 +fi + +if [ ! -e $jnlpdir_jogl ] ; then + echo $jnlpdir_jogl does not exist + exit 1 +fi + +if [ ! -e $jnlpdir_demos ] ; then + echo $jnlpdir_demos does not exist + exit 1 +fi + +wsdir=$joglbuilddir/webstart +mkdir -p $wsdir + +cp -v $jnlpdir_demos/*.html $wsdir + +uri_esc=`echo $url | sed 's/\//\\\\\//g'` +for j in $jnlpdir_gluegen/*.jnlp ; do + jb=`basename $j` + echo "processing $j to $wsdir/$jb" + sed "s/CODEBASE_TAG/$uri_esc/g" \ + $j > $wsdir/$jb +done + +for j in $jnlpdir_jogl/*.jnlp ; do + jb=`basename $j` + echo "processing $j to $wsdir/$jb" + sed -e "s/JOGL_CODEBASE_TAG/$uri_esc/g" \ + -e "s/GLUEGEN_CODEBASE_TAG/$uri_esc/g" \ + $j > $wsdir/$jb +done + +for j in $jnlpdir_demos/*.jnlp ; do + jb=`basename $j` + echo "processing $j to $wsdir/$jb" + sed -e "s/DEMO_CODEBASE_TAG/$uri_esc/g" \ + -e "s/JOGL_CODEBASE_TAG/$uri_esc/g" \ + $j > $wsdir/$jb +done + -- cgit v1.2.3