Statistics
| Revision:

root / tmp / org.txm.setups / PublishSetupsToSourceforge.sh @ 1657

History | View | Annotate | Download (2.1 kB)

1
#this script needs that you create a public key for SF
2
echo "Sending setups..."
3
VERSION=`cat VERSION`
4
TOSEND=$1
5
SF_USER=mdecorde
6

    
7
echo "Send REAMDE.md file"
8
cp "annonces/readme.md/${VERSION}_en.md" "README.md"
9
if [ $? != 0 ]; then
10
	echo "** sendSetupsToSF.sh : no README file found at 'annonces/readme.md/${VERSION}_en.md'"
11
	exit 1;
12
fi
13
echo "put README.md" > tmp
14
echo "exit" >> tmp
15
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
16
if [ $? != 0 ]; then
17
	echo "** sendSetupsToSF.sh : failed to send README.md"
18
	exit 1;
19
fi
20
rm "README.md"
21

    
22
echo "Linux: TXM_${VERSION}_Linux32.deb"
23
echo "put TXM_${VERSION}_Linux32.deb" > tmp
24
echo "exit" >> tmp
25
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
26
if [ $? != 0 ]; then
27
	echo "** sendSetupsToSF.sh : failed to Linux: TXM_${VERSION}_Linux32.deb"
28
	rm tmp
29
	exit 1;
30
fi
31

    
32
echo "Linux: TXM_${VERSION}_Linux64.deb"
33
echo "put TXM_${VERSION}_Linux64.deb" > tmp
34
echo "exit" >> tmp
35
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
36
if [ $? != 0 ]; then
37
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_Linux64.deb"
38
	rm tmp
39
	exit 1;
40
fi
41

    
42
echo "Win: TXM_${VERSION}_Win32.exe"
43
echo "put TXM_${VERSION}_Win32.exe" > tmp
44
echo "exit" >> tmp
45
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
46
echo $?
47
if [ $? != 0 ]; then
48
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_Win32.exe"
49
	rm tmp
50
	exit 1;
51
fi
52

    
53
echo "Win: TXM_${VERSION}_Win64.exe"
54
echo "put TXM_${VERSION}_Win64.exe" > tmp
55
echo "exit" >> tmp
56
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
57
if [ $? != 0 ]; then
58
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_Win64.exe"
59
	rm tmp
60
	exit 1;
61
fi
62

    
63
echo "Mac: TXM_${VERSION}_MacOSX.pkg"
64
echo "put TXM_${VERSION}_MacOSX.pkg" > tmp
65
echo "exit" >> tmp
66
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
67
if [ $? != 0 ]; then
68
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_MacOSX.pkg"
69
	rm tmp
70
	exit 1;
71
fi
72

    
73
rm tmp