Statistics
| Revision:

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

History | View | Annotate | Download (906 Bytes)

1 728 mdecorde
#./updateTESTTXMUpdateSite.sh dev && ./updateTESTTXMUpdateSite.sh alpha && ./updateTESTTXMUpdateSite.sh beta && ./updateTESTTXMUpdateSite.sh
2 728 mdecorde
3 728 mdecorde
echo "Sending RCP export to TEST update site..."
4 728 mdecorde
5 728 mdecorde
UPDATESITE="/home/mdecorde/TEMP/updates"
6 728 mdecorde
7 728 mdecorde
if [ "$1" = "" ]; then
8 728 mdecorde
	echo "uploading to default test repository"
9 728 mdecorde
elif [[ $1 =~ alpha|beta|dev ]]; then
10 728 mdecorde
	echo "uploading to the '$1' test repository"
11 728 mdecorde
else
12 728 mdecorde
	echo "$1: invalid parameter"
13 728 mdecorde
	exit 1;
14 728 mdecorde
fi
15 728 mdecorde
16 728 mdecorde
#moving to repository
17 728 mdecorde
cd "exportRCP/repository"
18 728 mdecorde
if [ $? != 0 ]; then
19 728 mdecorde
	echo "** updateTESTTXMUpdateSites.sh : failed to find exportRCP/repository"
20 728 mdecorde
	exit 1;
21 728 mdecorde
fi
22 728 mdecorde
23 728 mdecorde
mkdir "$UPDATESITE"
24 728 mdecorde
rm -rf "$UPDATESITE/TXM$1"
25 728 mdecorde
26 728 mdecorde
mkdir "$UPDATESITE/TXM$1" &&
27 728 mdecorde
mkdir "$UPDATESITE/TXM$1/plugins" &&
28 728 mdecorde
mkdir "$UPDATESITE/TXM$1/binary" &&
29 728 mdecorde
mkdir "$UPDATESITE/TXM$1/features" &&
30 728 mdecorde
cp -r * "$UPDATESITE/TXM$1"
31 728 mdecorde
32 728 mdecorde
if [ $? != 0 ]; then
33 728 mdecorde
	echo "** updateTESTTXMUpdateSites.sh : failed to update"
34 728 mdecorde
	exit 1;
35 728 mdecorde
fi