diff options
author | Sven Gothel <[email protected]> | 2010-11-09 03:05:17 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-09 03:05:17 +0100 |
commit | b3e89bfa55389cae974c94afba6fb4ce118f75df (patch) | |
tree | 063f7d59cee39e3beeec7c17c74d10497d0fa8a5 /deployment/deploy-jars-webstarttest.sh |
Provide deployment (jnlp) and hudson build aggregation scripts
Diffstat (limited to 'deployment/deploy-jars-webstarttest.sh')
-rwxr-xr-x | deployment/deploy-jars-webstarttest.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/deployment/deploy-jars-webstarttest.sh b/deployment/deploy-jars-webstarttest.sh new file mode 100755 index 0000000..8a98f5d --- /dev/null +++ b/deployment/deploy-jars-webstarttest.sh @@ -0,0 +1,50 @@ +#! /bin/sh + +joglbuilddir=$1 +shift + +wsdir=$1 +shift + +if [ -z "$joglbuilddir" -o -z "$wsdir" ] ; then + echo usage $0 jogl-builddir webstartdir + exit 1 +fi + +if [ ! -e $joglbuilddir ] ; then + echo $joglbuilddir does not exist + exit 1 +fi + +if [ ! -e $wsdir ] ; then + echo $wsdir 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 + +cp -v $joglbuilddir/jar/*.jar $wsdir +cp -v $demosroot/$builddirbase/*.jar $wsdir + |