summaryrefslogtreecommitdiffstats
path: root/user-templates/relocate2-webstart-ssh-on-hudson.sh
blob: d4e6adafe2041a28a82893f0deaa21bbc2f8d069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash

tag=v2.0-rc2

ssh jogl@jogamp.org "\
    cd /home/jogl ; \
    rm -rf jogamp-scripting ; \
    git clone file:///srv/scm/jogamp-scripting.git jogamp-scripting ; \
    cd jogamp-scripting ; \
    ls -la ; \
    ./jenkins-builds/relocate-webstart-folder.sh \
        $tag \
        /srv/www/jogamp.org/deployment/webstart-next \
        /srv/www/jogamp.org/deployment/webstart-new \
        http://jogamp.org/deployment/webstart ; \
    mv /srv/www/jogamp.org/deployment/webstart /srv/www/jogamp.org/deployment/webstart-old ; \
    mv /srv/www/jogamp.org/deployment/webstart-new /srv/www/jogamp.org/deployment/webstart ; \
    rm -rf /srv/www/jogamp.org/deployment/webstart-old ; \
"