Revision 2119

tmp/org.txm.setups/PublishSetupsToSourceforge.sh (revision 2119)
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
tmp/org.txm.setups/PublishSetupsToSpip.sh (revision 2119)
1
#this script needs that you create a public key for SF
2
echo "Sending setups..."
3
VERSION=`cat VERSION`
4

  
5

  
6
echo "Linux: TXM_${VERSION}_Linux64_installer.deb"
7

  
8
cp -f TXM_${VERSION}_Linux64_installer.deb "/run/user/1001/gvfs/sftp:host=vm-web-preprod.pun.ens-lyon.fr,user=$USER/textometrie/files/software/TXM/0.8.0/$VERSION"
9
if [ $? != 0 ]; then
10
	echo "** copy failed : TXM_${VERSION}_Linux64.deb"
11
	exit 1;
12
fi
13

  
14
echo "Win: TXM_${VERSION}_Win64_installer.exe"
15

  
16
cp -f TXM_${VERSION}_Win64_installer.exe "/run/user/1001/gvfs/sftp:host=vm-web-preprod.pun.ens-lyon.fr,user=$USER/textometrie/files/software/TXM/0.8.0/$VERSION"
17
if [ $? != 0 ]; then
18
	echo "** copy failed : TXM_${VERSION}_Win64.exe"
19
	exit 1;
20
fi
21

  
22
echo "Mac: TXM_${VERSION}_MacOSX.tar.gz"
23

  
24
cp -f TXM_${VERSION}_MacOSX.tar.gz "/run/user/1001/gvfs/sftp:host=vm-web-preprod.pun.ens-lyon.fr,user=$USER/textometrie/files/software/TXM/0.8.0/$VERSION"
25
if [ $? != 0 ]; then
26
	echo "** copy failed : TXM_${VERSION}_MacOSX.tar.gz"
27
	exit 1;
28
fi
29

  
30
rm tmp
0 31

  

Also available in: Unified diff