Statistics
| Revision:

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

History | View | Annotate | Download (906 Bytes)

1
#./updateTESTTXMUpdateSite.sh dev && ./updateTESTTXMUpdateSite.sh alpha && ./updateTESTTXMUpdateSite.sh beta && ./updateTESTTXMUpdateSite.sh
2

    
3
echo "Sending RCP export to TEST update site..."
4

    
5
UPDATESITE="/home/mdecorde/TEMP/updates"
6

    
7
if [ "$1" = "" ]; then
8
	echo "uploading to default test repository"
9
elif [[ $1 =~ alpha|beta|dev ]]; then
10
	echo "uploading to the '$1' test repository"
11
else
12
	echo "$1: invalid parameter"
13
	exit 1;
14
fi
15

    
16
#moving to repository
17
cd "exportRCP/repository"
18
if [ $? != 0 ]; then
19
	echo "** updateTESTTXMUpdateSites.sh : failed to find exportRCP/repository"
20
	exit 1;
21
fi
22

    
23
mkdir "$UPDATESITE"
24
rm -rf "$UPDATESITE/TXM$1"
25

    
26
mkdir "$UPDATESITE/TXM$1" && 
27
mkdir "$UPDATESITE/TXM$1/plugins" && 
28
mkdir "$UPDATESITE/TXM$1/binary" && 
29
mkdir "$UPDATESITE/TXM$1/features" && 
30
cp -r * "$UPDATESITE/TXM$1"
31

    
32
if [ $? != 0 ]; then
33
	echo "** updateTESTTXMUpdateSites.sh : failed to update"
34
	exit 1;
35
fi
36