Statistics
| Revision:

root / tmp / org.txm.setups / PublishTESTPluginUpdateSite.sh @ 793

History | View | Annotate | Download (791 Bytes)

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
SF_USER=mdecorde
4 728 mdecorde
UPDATESITE="/home/mdecorde/TEMP/updates/plugins"
5 728 mdecorde
6 728 mdecorde
if [ "$1" = "" ]; then
7 728 mdecorde
	echo "uploading to default repository"
8 728 mdecorde
elif [[ $1 =~ alpha|beta ]]; then
9 728 mdecorde
	echo "uploading to the '$1' repository"
10 728 mdecorde
else
11 728 mdecorde
	echo "$1: invalid parameter"
12 728 mdecorde
	exit 1;
13 728 mdecorde
fi
14 728 mdecorde
15 728 mdecorde
# renaming repository
16 728 mdecorde
cd "../../TXM plugins.site"
17 728 mdecorde
if [ $? != 0 ]; then
18 728 mdecorde
	echo "** updateTESTPluginsUpdateSites.sh : failed to find ../../TXM plugins.site"
19 728 mdecorde
	exit 1;
20 728 mdecorde
fi
21 728 mdecorde
22 728 mdecorde
mkdir "$UPDATESITE$1"
23 728 mdecorde
rm -rf "$UPDATESITE$1"
24 728 mdecorde
25 728 mdecorde
mkdir "${UPDATESITE}$1" &&
26 728 mdecorde
mkdir "${UPDATESITE}$1/plugins" &&
27 728 mdecorde
mkdir "${UPDATESITE}$1/features" &&
28 728 mdecorde
cp -r * "${UPDATESITE}$1"
29 728 mdecorde
30 728 mdecorde
if [ $? != 0 ]; then
31 728 mdecorde
	echo "** updateTESTPluginsUpdateSites.sh : failed to update"
32 728 mdecorde
	exit 1;
33 728 mdecorde
fi