diff options
author | Sven Gothel <[email protected]> | 2010-11-09 07:33:57 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-09 07:33:57 +0100 |
commit | 8f5ec187a744d3535a3a0bce928b2e2ae0ddc2f5 (patch) | |
tree | 0d4e0d07ca7864df012193703bd5f22db7ebaa46 | |
parent | cd15a474414bfadba0601532254dd781ef8fb661 (diff) |
Add jnlp security tag filter for unsigned temp builds
-rwxr-xr-x | deployment/funcs_jnlp_relocate.sh | 24 | ||||
-rwxr-xr-x | hudson-builds/test_something.sh | 12 |
2 files changed, 36 insertions, 0 deletions
diff --git a/deployment/funcs_jnlp_relocate.sh b/deployment/funcs_jnlp_relocate.sh index b4dabb3..e2d08a2 100755 --- a/deployment/funcs_jnlp_relocate.sh +++ b/deployment/funcs_jnlp_relocate.sh @@ -42,3 +42,27 @@ for j in $jnlpdir/*.jnlp ; do done } + +function remove_security_tag_jnlps() { + +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 + +for i in *.jnlp ; do + sed -i -e 's/<security>//g' -e 's/<\/security>//g' -e 's/<all-permissions\/>//g' $i +done + +} + diff --git a/hudson-builds/test_something.sh b/hudson-builds/test_something.sh new file mode 100755 index 0000000..7f20781 --- /dev/null +++ b/hudson-builds/test_something.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +wsdir=/srv/www/jogamp.org/deployment/archive/gluegen_195-jogl_203-jocl_200 +url=http://jogamp.org/deployment/archive/gluegen_195-jogl_203-jocl_200 + +sdir=`dirname $0` + +. $sdir/../deployment/funcs_jnlp_relocate.sh + +copy_relocate_jnlps $url $wsdir +remove_security_tag_jnlps $wsdir + |