Statistics
| Revision:

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

History | View | Annotate | Download (2.1 kB)

1 728 mdecorde
#this script needs that you create a public key for SF
2 728 mdecorde
echo "Sending setups..."
3 728 mdecorde
VERSION=`cat VERSION`
4 728 mdecorde
TOSEND=$1
5 728 mdecorde
SF_USER=mdecorde
6 728 mdecorde
7 728 mdecorde
echo "Send REAMDE.md file"
8 728 mdecorde
cp "annonces/readme.md/${VERSION}_en.md" "README.md"
9 728 mdecorde
if [ $? != 0 ]; then
10 728 mdecorde
	echo "** sendSetupsToSF.sh : no README file found at 'annonces/readme.md/${VERSION}_en.md'"
11 728 mdecorde
	exit 1;
12 728 mdecorde
fi
13 728 mdecorde
echo "put README.md" > tmp
14 728 mdecorde
echo "exit" >> tmp
15 728 mdecorde
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
16 728 mdecorde
if [ $? != 0 ]; then
17 728 mdecorde
	echo "** sendSetupsToSF.sh : failed to send README.md"
18 728 mdecorde
	exit 1;
19 728 mdecorde
fi
20 728 mdecorde
rm "README.md"
21 728 mdecorde
22 728 mdecorde
echo "Linux: TXM_${VERSION}_Linux32.deb"
23 728 mdecorde
echo "put TXM_${VERSION}_Linux32.deb" > tmp
24 728 mdecorde
echo "exit" >> tmp
25 728 mdecorde
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
26 728 mdecorde
if [ $? != 0 ]; then
27 728 mdecorde
	echo "** sendSetupsToSF.sh : failed to Linux: TXM_${VERSION}_Linux32.deb"
28 728 mdecorde
	rm tmp
29 728 mdecorde
	exit 1;
30 728 mdecorde
fi
31 728 mdecorde
32 728 mdecorde
echo "Linux: TXM_${VERSION}_Linux64.deb"
33 728 mdecorde
echo "put TXM_${VERSION}_Linux64.deb" > tmp
34 728 mdecorde
echo "exit" >> tmp
35 728 mdecorde
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
36 728 mdecorde
if [ $? != 0 ]; then
37 728 mdecorde
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_Linux64.deb"
38 728 mdecorde
	rm tmp
39 728 mdecorde
	exit 1;
40 728 mdecorde
fi
41 728 mdecorde
42 728 mdecorde
echo "Win: TXM_${VERSION}_Win32.exe"
43 728 mdecorde
echo "put TXM_${VERSION}_Win32.exe" > tmp
44 728 mdecorde
echo "exit" >> tmp
45 728 mdecorde
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
46 728 mdecorde
echo $?
47 728 mdecorde
if [ $? != 0 ]; then
48 728 mdecorde
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_Win32.exe"
49 728 mdecorde
	rm tmp
50 728 mdecorde
	exit 1;
51 728 mdecorde
fi
52 728 mdecorde
53 728 mdecorde
echo "Win: TXM_${VERSION}_Win64.exe"
54 728 mdecorde
echo "put TXM_${VERSION}_Win64.exe" > tmp
55 728 mdecorde
echo "exit" >> tmp
56 728 mdecorde
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
57 728 mdecorde
if [ $? != 0 ]; then
58 728 mdecorde
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_Win64.exe"
59 728 mdecorde
	rm tmp
60 728 mdecorde
	exit 1;
61 728 mdecorde
fi
62 728 mdecorde
63 728 mdecorde
echo "Mac: TXM_${VERSION}_MacOSX.pkg"
64 728 mdecorde
echo "put TXM_${VERSION}_MacOSX.pkg" > tmp
65 728 mdecorde
echo "exit" >> tmp
66 728 mdecorde
sftp -b tmp "${SF_USER},txm@frs.sourceforge.net:/home/frs/project/t/tx/txm/software/TXM/${VERSION}"
67 728 mdecorde
if [ $? != 0 ]; then
68 728 mdecorde
	echo "** sendSetupsToSF.sh : failed to TXM_${VERSION}_MacOSX.pkg"
69 728 mdecorde
	rm tmp
70 728 mdecorde
	exit 1;
71 728 mdecorde
fi
72 728 mdecorde
73 728 mdecorde
rm tmp