2011-06-09 01:24:08 +02:00
|
|
|
#!/bin/sh
|
|
|
|
DIRECTORY=$(cd `dirname $0` && pwd)
|
|
|
|
|
|
|
|
FTP_SITE=download.osmand.net
|
2011-06-09 04:02:29 +02:00
|
|
|
FTP_FOLDER=/var/www-download/night-builds
|
|
|
|
FTP_LATEST=/var/www-download/latest-night-build
|
2011-06-09 01:24:08 +02:00
|
|
|
# FTP_USER in local.properties
|
|
|
|
# FTP_PWD= in local.properties
|
|
|
|
BUILD_DIR="$DIRECTORY"/builds
|
|
|
|
LATEST_DIR="$DIRECTORY"/latests
|
|
|
|
|
2011-10-07 01:32:52 +02:00
|
|
|
#. "$DIRECTORY"/local.properties
|
2011-06-09 01:24:08 +02:00
|
|
|
# 3. upload to ftp server
|
|
|
|
#lftp -c "set net:timeout 45;open -u $FTP_USER,$FTP_PWD $FTP_SITE;mirror -R $BUILD_DIR $FTP_FOLDER;mirror -R $LATEST_DIR $FTP_LATEST"
|
|
|
|
#rm $FTP_FOLDER/*
|
|
|
|
#rm $FTP_LATEST/*
|
2011-10-07 01:32:52 +02:00
|
|
|
cp -f $BUILD_DIR/* $FTP_FOLDER 2> /dev/null
|
|
|
|
cp -f $LATEST_DIR/* $FTP_LATEST 2> /dev/null
|
2011-06-09 01:24:08 +02:00
|
|
|
|
2011-09-17 19:30:48 +02:00
|
|
|
|
2011-06-09 01:24:08 +02:00
|
|
|
#ftp -n -v $FTP_SITE <<SCRIPT 2>&1
|
|
|
|
#quote USER $FTP_USER
|
|
|
|
#quote PASS $FTP_PWD
|
|
|
|
#cd $FTP_FOLDER
|
|
|
|
#ls
|
|
|
|
#quit
|
|
|
|
|
|
|
|
|
|
|
|
|