blob: 367c2898c78dc61e52d0f03574f407e5b385c867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#! /bin/bash
##
#
# Will relocate a webstart folder.
# - copy wsdir1 -> wsdir2
# - filters jnlp files (url)
#
# relocate-webstart-folder.sh <version> <wsdir1> <wsdir2> <url>
# eg.
# relocate-webstart-folder.sh v2.0-rc2 \
# /srv/www/deployment/webstart-b3 \
# /srv/www/deployment/webstart-next \
# http://lala.lu/webstart-next
#
##
version=$1
shift
abuild=$1
shift
wsdir=$1
shift
url=$1
shift
if [ -z "$version" -o -z "$abuild" -o -z "$wsdir" -o -z "$url" ] ; then
echo "usage $0 version abuilddir webstartdir url"
exit 1
fi
if [ ! -e $abuild ] ; then
echo $abuild does not exist
exit 1
fi
if [ -e $wsdir ] ; then
echo $wsdir already exist
exit 1
fi
sdir=`dirname $0`
. $sdir/../deployment/funcs_jnlp_relocate.sh
cp -a $abuild $wsdir
copy_relocate_jnlps_base $version $url $wsdir
copy_relocate_jnlps_demos $version $url $wsdir joal-demos
copy_relocate_jnlps_demos $version $url $wsdir jogl-demos
copy_relocate_jnlps_demos $version $url $wsdir jocl-demos
|