Statistics
| Revision:

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

History | View | Annotate | Download (951 Bytes)

1 728 mdecorde
SF_USER=mdecorde
2 728 mdecorde
DISTANTMACRODIR="/home/frs/project/t/tx/txm/software/TXM Macros"
3 728 mdecorde
SERVER="frs.sourceforge.net"
4 728 mdecorde
GROUP="txm"
5 728 mdecorde
6 728 mdecorde
TOOLBOXDIRECTORY="$HOME/workspace079/org.txm.toolbox"
7 728 mdecorde
MACRODIR="$TOOLBOXDIRECTORY/src/groovy/org/txm/macro"
8 728 mdecorde
9 728 mdecorde
echo "Sending all macros files to SF 'TXM Macros' directory..."
10 728 mdecorde
11 728 mdecorde
echo "making SF directories..."
12 728 mdecorde
for dir in `ls $MACRODIR`; do
13 728 mdecorde
	echo " making $dir directory"
14 728 mdecorde
	echo "put TXM_${VERSION}_Linux64.deb" > tmp_ftp
15 728 mdecorde
	echo "exit" >> tmp_ftp
16 728 mdecorde
	#sftp -b tmp "${SF_USER},${GROUP}@{$SERVER}:${DISTANTMACRODIR}"
17 728 mdecorde
done
18 728 mdecorde
19 728 mdecorde
for dir in `ls $MACRODIR`; do
20 728 mdecorde
	echo " sending $dir directory to SF..."
21 728 mdecorde
	#echo "put TXM_${VERSION}_Linux64.deb" > tmp_ftp
22 728 mdecorde
	#echo "exit" >> tmp_ftp
23 728 mdecorde
	#sftp -b tmp "${SF_USER},${GROUP}@${SERVER}:${DISTANTMACRODIR}"
24 728 mdecorde
25 728 mdecorde
	#scp -rq "$MACRODIR/$dir" ${SF_USER},${GROUP}@${SERVER}:${DISTANTMACRODIR}
26 728 mdecorde
27 728 mdecorde
	if [ $? != 0 ]; then
28 728 mdecorde
		echo "** PublichMacro.sh : failed to send $dir"
29 728 mdecorde
		rm tmp
30 728 mdecorde
		exit 1;
31 728 mdecorde
	fi
32 728 mdecorde
done
33 728 mdecorde
34 728 mdecorde
# cleaning
35 728 mdecorde
rm -f tmp_ftp