Statistics
| Revision:

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

History | View | Annotate | Download (791 Bytes)

1
# this script needs that you create a public key for SF
2
echo "Sending RCP plugins to update site..."
3
SF_USER=mdecorde
4
UPDATESITE="/home/mdecorde/TEMP/updates/plugins"
5

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

    
15
# renaming repository
16
cd "../../TXM plugins.site"
17
if [ $? != 0 ]; then
18
	echo "** updateTESTPluginsUpdateSites.sh : failed to find ../../TXM plugins.site"
19
	exit 1;
20
fi
21

    
22
mkdir "$UPDATESITE$1"
23
rm -rf "$UPDATESITE$1"
24

    
25
mkdir "${UPDATESITE}$1" && 
26
mkdir "${UPDATESITE}$1/plugins" && 
27
mkdir "${UPDATESITE}$1/features" && 
28
cp -r * "${UPDATESITE}$1"
29

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