diff options
author | Sven Gothel <[email protected]> | 2010-11-09 03:20:00 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-09 03:20:00 +0100 |
commit | 8957ecbb7a9fd8e9d70ec246cf557a0183e4d9ee (patch) | |
tree | 73d082d93468c092292cd5a402d8b98174756775 | |
parent | 312b3bd03f7601f9fb9c501aa2b35bd8e05df238 (diff) |
Relocated some deployment script to jogamp-scripting repo
-rwxr-xr-x | make/scripts/all-deploy-webstarttest.sh | 57 | ||||
-rwxr-xr-x | make/scripts/deploy-jar-sign.sh | 36 | ||||
-rwxr-xr-x | make/scripts/deploy-jars-pack200.sh | 33 | ||||
-rwxr-xr-x | make/scripts/deploy-jars-repack200.sh | 30 | ||||
-rwxr-xr-x | make/scripts/deploy-jars-sign.sh | 47 | ||||
-rwxr-xr-x | make/scripts/deploy-jars-webstarttest.sh | 50 | ||||
-rwxr-xr-x | make/scripts/deploy-jars_external-webstarttest.sh | 26 | ||||
-rwxr-xr-x | make/scripts/deploy-jnlp-webstarttest-filter.sh | 25 | ||||
-rwxr-xr-x | make/scripts/deploy-jnlp-webstarttest.sh | 79 | ||||
-rwxr-xr-x | make/scripts/hudson-archive-jars-latest.sh | 149 |
10 files changed, 0 insertions, 532 deletions
diff --git a/make/scripts/all-deploy-webstarttest.sh b/make/scripts/all-deploy-webstarttest.sh deleted file mode 100755 index e947c3f3d..000000000 --- a/make/scripts/all-deploy-webstarttest.sh +++ /dev/null @@ -1,57 +0,0 @@ -#! /bin/sh - -if [ ! -e scripts -o ! -e ../make ] ; then - echo start this script from JOGL/jogl/make - exit 1 -fi - -url=$1 -shift - -joglbuilddir=$1 -shift - -wsdir=$1 -shift - -if [ -z "$url" -o -z "$joglbuilddir" -o -z "$wsdir" ] ; then - echo Usage $0 codebase-url jogl-builddir webstartdir - echo Examples - echo sh $0 file:////usr/local/projects/JOGL/webstart ../build-x86_64 ../../webstart - echo sh $0 http://domain.org/jogl/webstart ../build-win32 ../../webstart - 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 - -sh scripts/deploy-jars-webstarttest.sh $joglbuilddir $wsdir -# -# repack it .. so the signed jars can be pack200'ed -# sh scripts/deploy-jars-repack200.sh $wsdir -# -# sign it -# sh scripts/deploy-jars-sign.sh $wsdir KEY_STORE_FILE STORE_PASSWORD SOME_ARGUMENT -# -# pack200 -# sh scripts/deploy-jars-pack200.sh $wsdir -# -sh scripts/deploy-jnlp-webstarttest.sh $url $joglbuilddir $wsdir -# -# In case you don't sign it .. -# -# sh scripts/deploy-jnlp-webstarttest-filter.sh $wsdir -# -# Add to HOME/.java.policy -# -# grant codeBase "file:////usr/local/projects/JOGL/webstart/-" { -# permission java.security.AllPermission; -# }; - diff --git a/make/scripts/deploy-jar-sign.sh b/make/scripts/deploy-jar-sign.sh deleted file mode 100755 index d6291c45c..000000000 --- a/make/scripts/deploy-jar-sign.sh +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/sh - -jarfile=$1 -shift - -keystore=$1 -shift - -storepass=$1 -shift - -signarg=$1 -shift - -if [ -z "$jarfile" -o -z "$keystore" -o -z "$storepass" ] ; then - echo "usage $0 jarfile pkcs12-keystore storepass [signarg]" - exit 1 -fi - -if [ ! -e $jarfile ] ; then - echo $jarfile does not exist - exit 1 -fi - -if [ ! -e $keystore ] ; then - echo $keystore does not exist - exit 1 -fi - -THISDIR=`pwd` - -echo jarsigner -storetype pkcs12 -keystore $keystore $jarfile \"$signarg\" -jarsigner -storetype pkcs12 -keystore $THISDIR/$keystore -storepass $storepass $jarfile "$signarg" - -cd $THISDIR - diff --git a/make/scripts/deploy-jars-pack200.sh b/make/scripts/deploy-jars-pack200.sh deleted file mode 100755 index 471e8ab7b..000000000 --- a/make/scripts/deploy-jars-pack200.sh +++ /dev/null @@ -1,33 +0,0 @@ -#! /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 - diff --git a/make/scripts/deploy-jars-repack200.sh b/make/scripts/deploy-jars-repack200.sh deleted file mode 100755 index 1169d63c3..000000000 --- a/make/scripts/deploy-jars-repack200.sh +++ /dev/null @@ -1,30 +0,0 @@ -#! /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 - -rm -rf orig-jars -mkdir -p orig-jars - -for i in *.jar ; do - cp -a $i orig-jars - echo pack200 --repack $i - pack200 --repack $i -done - -cd $THISDIR - diff --git a/make/scripts/deploy-jars-sign.sh b/make/scripts/deploy-jars-sign.sh deleted file mode 100755 index 1a4421aa9..000000000 --- a/make/scripts/deploy-jars-sign.sh +++ /dev/null @@ -1,47 +0,0 @@ -#! /bin/sh - -wsdir=$1 -shift - -keystore=$1 -shift - -storepass=$1 -shift - -signarg=$1 -shift - -if [ -z "$wsdir" -o -z "$keystore" -o -z "$storepass" ] ; then - echo "usage $0 webstartdir pkcs12-keystore storepass [signarg]" - exit 1 -fi - -if [ ! -e $wsdir ] ; then - echo $wsdir does not exist - exit 1 -fi - -if [ ! -e $keystore ] ; then - echo $keystore does not exist - exit 1 -fi - -THISDIR=`pwd` - -cd $wsdir - -rm -rf demo-jars -mkdir -p demo-jars -mv jogl.test.jar jogl-demos*jar demo-jars/ - -for i in *.jar ; do - echo jarsigner -storetype pkcs12 -keystore $keystore $i \"$signarg\" - jarsigner -storetype pkcs12 -keystore $THISDIR/$keystore -storepass $storepass $i "$signarg" -done - -mv demo-jars/* . -rm -rf demo-jars - -cd $THISDIR - diff --git a/make/scripts/deploy-jars-webstarttest.sh b/make/scripts/deploy-jars-webstarttest.sh deleted file mode 100755 index 8a98f5d3f..000000000 --- a/make/scripts/deploy-jars-webstarttest.sh +++ /dev/null @@ -1,50 +0,0 @@ -#! /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 - diff --git a/make/scripts/deploy-jars_external-webstarttest.sh b/make/scripts/deploy-jars_external-webstarttest.sh deleted file mode 100755 index 3fc1daa51..000000000 --- a/make/scripts/deploy-jars_external-webstarttest.sh +++ /dev/null @@ -1,26 +0,0 @@ -#! /bin/sh - -if [ ! -e scripts -o ! -e ../make ] ; then - echo start this script from JOGL/jogl/make - exit 1 -fi - -SOURCE=$1 -shift - -wsdir=$1 -shift - -if [ -z "$SOURCE" -o -z "$wsdir" ] ; then - echo usage $0 source webstartdir - echo source might be [email protected]:webstart/ - exit 1 -fi - -if [ ! -e $wsdir ] ; then - echo $wsdir does not exist - exit 1 -fi - -echo scp -v $SOURCE*natives* $wsdir -scp -v $SOURCE*natives* $wsdir diff --git a/make/scripts/deploy-jnlp-webstarttest-filter.sh b/make/scripts/deploy-jnlp-webstarttest-filter.sh deleted file mode 100755 index 77eda44c8..000000000 --- a/make/scripts/deploy-jnlp-webstarttest-filter.sh +++ /dev/null @@ -1,25 +0,0 @@ -#! /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 - -cd $wsdir - -rm -rf orig-jnlp -mkdir orig-jnlp - -for i in *.jnlp ; do - mv $i orig-jnlp - sed -e 's/<security>//g' -e 's/<\/security>//g' -e 's/<all-permissions\/>//g' orig-jnlp/$i > $i -done - diff --git a/make/scripts/deploy-jnlp-webstarttest.sh b/make/scripts/deploy-jnlp-webstarttest.sh deleted file mode 100755 index 8f3b0d216..000000000 --- a/make/scripts/deploy-jnlp-webstarttest.sh +++ /dev/null @@ -1,79 +0,0 @@ -#! /bin/sh - -url=$1 -shift - -joglbuilddir=$1 -shift - -wsdir=$1 -shift - -if [ -z "$url" -o -z "$joglbuilddir" -o -z "$wsdir" ] ; then - echo usage $0 codebase-url jogl-builddir webstartdir - echo Examples - echo sh $0 file:////usr/local/projects/JOGL/webstart ../build-x86_64 ../../webstart - echo sh $0 http://domain.org/jogl/webstart ../build-win32 ../../webstart - 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 $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 - diff --git a/make/scripts/hudson-archive-jars-latest.sh b/make/scripts/hudson-archive-jars-latest.sh deleted file mode 100755 index 19acee4e6..000000000 --- a/make/scripts/hudson-archive-jars-latest.sh +++ /dev/null @@ -1,149 +0,0 @@ -#! /bin/bash - -archivedir=/srv/www/jogamp.org/deployment/archive -rootdir=/srv/www/jogamp.org/deployment/autobuilds -cd $rootdir - -dest=tmp-archive - -rm -rf $dest -mkdir $dest -mkdir $dest/javadoc - -function lslatest() { - pattern=$1 - shift - ls -rt | grep $pattern | tail -1 -} - -function buildnumber_2() { - folder=$1 - shift - echo $folder | awk -F '-' ' { print substr($2, 2); } ' -} - -function buildnumber_3() { - folder=$1 - shift - echo $folder | awk -F '-' ' { print substr($3, 2); } ' -} - -function buildnumber_4() { - folder=$1 - shift - echo $folder | awk -F '-' ' { print substr($4, 2); } ' -} - -gluegenslave=`lslatest gluegen-b` -bgluegenslave=`buildnumber_2 $gluegenslave` -gluegenmaster=`lslatest gluegen-master-b` -bgluegenmaster=`buildnumber_3 $gluegenmaster` -echo -echo GLUEGEN -echo -echo slave build $bgluegenslave - $gluegenslave -echo master build $bgluegenmaster - $gluegenmaster -echo -echo "gluegen.build.number=$bgluegenslave" >> $dest/aggregated.artifact.properties - -cp -a $gluegenslave/build/gluegen*jar $dest/ -cp -a $gluegenslave/build/artifact.properties $dest/gluegen.artifact.properties - -cp -a $gluegenmaster/build/artifact.properties $dest/javadoc/gluegen-master.artifact.properties -mkdir $dest/javadoc/gluegen -cp -a $gluegenmaster/build/javadoc.zip $dest/javadoc/gluegen -cd $dest/javadoc/gluegen -unzip -q javadoc.zip -cd $rootdir - -joglslave=`lslatest jogl-b` -bjoglslave=`buildnumber_2 $joglslave` -joglmaster=`lslatest jogl-master-b` -bjoglmaster=`buildnumber_3 $joglmaster` -echo -echo JOGL -echo -echo slave build $bjoglslave - $joglslave -echo master build $bjoglmaster - $joglmaster -echo -echo "jogl.build.number=$bjoglslave" >> $dest/aggregated.artifact.properties - -cp -a $joglslave/build/jar/nativewindow*jar $dest/ -cp -a $joglslave/build/jar/jogl*jar $dest/ -cp -a $joglslave/build/jar/newt*jar $dest/ -cp -a $joglslave/build/jogl*zip $dest/ -cp -a $joglslave/build/artifact.properties $dest/jogl.artifact.properties - -cp -a $joglmaster/build/artifact.properties $dest/javadoc/jogl-master.artifact.properties -mkdir $dest/javadoc/jogl -cp -a $joglmaster/build/javadoc*.zip $dest/javadoc/jogl -cd $dest/javadoc/jogl -for i in *.zip ; do - unzip -q $i -done -cd $rootdir - -jogldemosmaster=`lslatest jogl-demos-master-b` -bjogldemosmaster=`buildnumber_4 $jogldemosmaster` -echo -echo JOGL DEMOS -echo -echo master build $bjogldemosmaster - $jogldemosmaster -echo -echo "jogl-demos.build.number=$bjogldemosmaster" >> $dest/aggregated.artifact.properties - -cp -a $jogldemosmaster/build/jogl-demos*jar $dest/ -cp -a $jogldemosmaster/build/artifact.properties $dest/jogl-demos.artifact.properties - - - -joclslave=`lslatest jocl-b` -bjoclslave=`buildnumber_2 $joclslave` -joclmaster=`lslatest jocl-master-b` -bjoclmaster=`buildnumber_3 $joclmaster` -echo -echo JOCL -echo -echo slave build $bjoclslave - $joclslave -echo master build $bjoclmaster - $joclmaster -echo -echo "jocl.build.number=$bjoclslave" >> $dest/aggregated.artifact.properties - -cp -a $joclslave/jocl*jar $dest/ -cp -a $joclslave/artifact.properties $dest/jocl.artifact.properties - -cp -a $joclmaster/artifact.properties $dest/javadoc/jocl-master.artifact.properties -mkdir $dest/javadoc/jocl -cp -a $joclmaster/jocl-javadoc.zip $dest/javadoc/jocl/ -cd $dest/javadoc/jocl -unzip -q jocl-javadoc.zip -cd $rootdir - -jocldemosslave=`lslatest jocl-demos-b` -bjocldemosslave=`buildnumber_3 $jocldemosslave` -echo -echo JOCL DEMOS -echo -echo slave build $bjocldemosslave - $jocldemosslave -echo -echo "jocl-demos.build.number=$bjocldemosslave" >> $dest/aggregated.artifact.properties - -cp -a $jocldemosslave/jocl-demos*jar $dest/ -cp -a $jocldemosslave/artifact.properties $dest/jocl-demos.artifact.properties - -rm -rf $archivedir/gluegen_$bgluegenslave-jogl_$bjoglslave-jocl_$bjoclslave -mv $dest $archivedir/gluegen_$bgluegenslave-jogl_$bjoglslave-jocl_$bjoclslave - -echo -echo Aggregation folder $archivedir/gluegen_$bgluegenslave-jogl_$bjoglslave-jocl_$bjoclslave -echo - -cd $archivedir/gluegen_$bgluegenslave-jogl_$bjoglslave-jocl_$bjoclslave - -echo -echo aggregation.properties -echo -cat jocl-demos.artifact.properties jogl-demos.artifact.properties | sort -u > jocl-demos-jogl-demos.artifact.properties.sorted -sort -u aggregated.artifact.properties > aggregated.artifact.properties.sorted -diff -Nurb aggregated.artifact.properties.sorted jocl-demos-jogl-demos.artifact.properties.sorted - |