diff options
author | Sven Gothel <[email protected]> | 2010-12-15 05:35:21 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-12-15 05:35:21 +0100 |
commit | 6f78999b70c214d71338793d00bc41e57760c7e2 (patch) | |
tree | 98bc2fd193dc4c12e843c4f4eb27402cb98b92cc /deployment | |
parent | 7fe7834a0203e9b100be647b306979fd1549972a (diff) |
Add tag/version for jnlp files
Diffstat (limited to 'deployment')
-rwxr-xr-x | deployment/funcs_jnlp_relocate.sh | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/deployment/funcs_jnlp_relocate.sh b/deployment/funcs_jnlp_relocate.sh index 4b4f8ba..192e249 100755 --- a/deployment/funcs_jnlp_relocate.sh +++ b/deployment/funcs_jnlp_relocate.sh @@ -2,17 +2,20 @@ function copy_relocate_jnlps_base() { +local version=$1 +shift + local url=$1 shift local wsdir=$1 shift -if [ -z "$url" -o -z "$wsdir" ] ; then - echo usage $0 codebase-url webstartdir +if [ -z "$version" -o -z "$url" -o -z "$wsdir" ] ; then + echo usage $0 version codebase-url webstartdir echo Examples - echo sh $0 file:////usr/local/projects/JOGL/webstart ../../webstart - echo sh $0 http://domain.org/jogl/webstart /srv/www/webstart-next + echo sh $0 v2.0-rc2 file:////usr/local/projects/JOGL/webstart ../../webstart + echo sh $0 v2.0-rc2 http://domain.org/jogl/webstart /srv/www/webstart-next exit 1 fi @@ -36,6 +39,7 @@ for j in $jnlpdir/*.jnlp ; do echo "processing $j to $wsdir/$jb" sed \ + -e "s/JOGAMP_VERSION/$version/g" \ -e "s/GLUEGEN_CODEBASE_TAG/$uri_esc/g" \ -e "s/JOAL_CODEBASE_TAG/$uri_esc/g" \ -e "s/JOGL_CODEBASE_TAG/$uri_esc/g" \ @@ -47,6 +51,9 @@ done function copy_relocate_jnlps_demos() { +local version=$1 +shift + local url=$1 shift @@ -56,11 +63,11 @@ shift local demos_rel=$1 shift -if [ -z "$url" -o -z "$wsdir" -o -z "$demos_rel" ] ; then - echo usage $0 codebase-url webstartdir demos_rel +if [ -z "$version" -o -z "$url" -o -z "$wsdir" -o -z "$demos_rel" ] ; then + echo usage $0 version codebase-url webstartdir demos_rel echo Examples - echo sh $0 file:////usr/local/projects/JOGL/webstart ../../webstart demos - echo sh $0 http://domain.org/jogl/webstart /srv/www/webstart-next demos + echo sh $0 v2.0-rc2 file:////usr/local/projects/JOGL/webstart ../../webstart demos + echo sh $0 v2.0-rc2 http://domain.org/jogl/webstart /srv/www/webstart-next demos exit 1 fi @@ -93,6 +100,7 @@ for j in $jnlpdir/*.jnlp ; do echo "processing $j to $demos/$jb" sed \ + -e "s/JOGAMP_VERSION/$version/g" \ -e "s/GLUEGEN_CODEBASE_TAG/$uri_esc/g" \ -e "s/JOAL_CODEBASE_TAG/$uri_esc/g" \ -e "s/JOGL_CODEBASE_TAG/$uri_esc/g" \ |