Statistics
| Revision:

root / tmp / org.txm.setups / PublishPluginUpdateSite.sh @ 1120

History | View | Annotate | Download (1.1 kB)

1 728 mdecorde
# this script needs that you create a public key for SF
2 728 mdecorde
echo "Sending RCP plugins to update site..."
3 728 mdecorde
UPDATESITE="/var/lib/tomcat6/webapps/updates/plugins$1"
4 728 mdecorde
SERVER="txm.ish-lyon.cnrs.fr"
5 728 mdecorde
USER="txm"
6 728 mdecorde
7 728 mdecorde
if [ "$1" = "" ]; then
8 728 mdecorde
	echo "uploading to default repository"
9 728 mdecorde
elif [ $1 = "alpha" ]; then
10 728 mdecorde
	echo "uploading to the '$1' repository"
11 728 mdecorde
elif [ $1 = "beta" ]; then
12 728 mdecorde
	echo "uploading to the '$1' repository"
13 728 mdecorde
elif [ $1 = "dev" ]; then
14 728 mdecorde
	echo "uploading to the '$1' repository"
15 728 mdecorde
else
16 728 mdecorde
	echo "'$1': invalid parameter"
17 728 mdecorde
	exit 1;
18 728 mdecorde
fi
19 728 mdecorde
20 728 mdecorde
# moving to src plugin site
21 728 mdecorde
if [ "$1" = "" ]; then
22 728 mdecorde
	cd "../../TXMStablePlugins.site"
23 728 mdecorde
elif [ $1 = "alpha" ]; then
24 728 mdecorde
	cd "../../TXMAlphaPlugins.site"
25 728 mdecorde
elif [ $1 = "beta" ]; then
26 728 mdecorde
	cd "../../TXMBetaPlugins.site"
27 728 mdecorde
elif [ $1 = "dev" ]; then
28 728 mdecorde
	cd "../../TXMDevPlugins.site"
29 728 mdecorde
else
30 728 mdecorde
	echo "$1: invalid parameter2"
31 728 mdecorde
	exit 1;
32 728 mdecorde
fi
33 728 mdecorde
34 728 mdecorde
if [ $? != 0 ]; then
35 728 mdecorde
	echo "** updatePluginsUpdateSites.sh : failed to find ../../TXM plugins.site"
36 728 mdecorde
	exit 1;
37 728 mdecorde
fi
38 728 mdecorde
39 728 mdecorde
# DO IT !
40 728 mdecorde
echo "Sending plugins..."
41 728 mdecorde
scp -r * $USER@$SERVER:$UPDATESITE
42 728 mdecorde
if [ $? != 0 ]; then
43 728 mdecorde
	echo "** updateTXMUpdateSites.sh : failed to update"
44 728 mdecorde
	exit 1;
45 728 mdecorde
fi