Statistics
| Revision:

root / tmp / org.txm.setups / PublishMacros.sh @ 1803

History | View | Annotate | Download (951 Bytes)

1
SF_USER=mdecorde
2
DISTANTMACRODIR="/home/frs/project/t/tx/txm/software/TXM Macros"
3
SERVER="frs.sourceforge.net"
4
GROUP="txm"
5

    
6
TOOLBOXDIRECTORY="$HOME/workspace079/org.txm.toolbox"
7
MACRODIR="$TOOLBOXDIRECTORY/src/groovy/org/txm/macro"
8

    
9
echo "Sending all macros files to SF 'TXM Macros' directory..."
10

    
11
echo "making SF directories..."
12
for dir in `ls $MACRODIR`; do
13
	echo " making $dir directory"
14
	echo "put TXM_${VERSION}_Linux64.deb" > tmp_ftp
15
	echo "exit" >> tmp_ftp
16
	#sftp -b tmp "${SF_USER},${GROUP}@{$SERVER}:${DISTANTMACRODIR}"
17
done
18

    
19
for dir in `ls $MACRODIR`; do
20
	echo " sending $dir directory to SF..."
21
	#echo "put TXM_${VERSION}_Linux64.deb" > tmp_ftp
22
	#echo "exit" >> tmp_ftp
23
	#sftp -b tmp "${SF_USER},${GROUP}@${SERVER}:${DISTANTMACRODIR}"
24
	
25
	#scp -rq "$MACRODIR/$dir" ${SF_USER},${GROUP}@${SERVER}:${DISTANTMACRODIR}
26

    
27
	if [ $? != 0 ]; then
28
		echo "** PublichMacro.sh : failed to send $dir"
29
		rm tmp
30
		exit 1;
31
	fi
32
done
33

    
34
# cleaning
35
rm -f tmp_ftp