daily build with new script to copy files, not upload

This commit is contained in:
Pavol Zibrita 2011-06-09 01:24:08 +02:00
parent adead3b821
commit a5b1b30889
2 changed files with 32 additions and 1 deletions

28
build-scripts/copyto_dir.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
FTP_SITE=download.osmand.net
FTP_FOLDER=/home/osmand/www/night-builds
FTP_LATEST=/home/osmand/www/latest-night-build
# FTP_USER in local.properties
# FTP_PWD= in local.properties
BUILD_DIR="$DIRECTORY"/builds
LATEST_DIR="$DIRECTORY"/latests
. "$DIRECTORY"/local.properties
# 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/*
cp -f $BUILD_DIR/* $FTP_FOLDER
cp -f $LATEST_DIR/* $FTP_LATEST
#ftp -n -v $FTP_SITE <<SCRIPT 2>&1
#quote USER $FTP_USER
#quote PASS $FTP_PWD
#cd $FTP_FOLDER
#ls
#quit

View file

@ -18,7 +18,10 @@ touch $LOG_FILE
"${DIRECTORY}/build_branches.sh" 2>&1 >>$LOG_FILE "${DIRECTORY}/build_branches.sh" 2>&1 >>$LOG_FILE
# 3. upload to ftp server # 3. upload to ftp server
"${DIRECTORY}/upload_ftp.sh" 2>&1 >>$LOG_FILE #"${DIRECTORY}/upload_ftp.sh" 2>&1 >>$LOG_FILE
# 3. upload to ftp server
"${DIRECTORY}/copyto_dir.sh" 2>&1 >>$LOG_FILE
# 4. Synchronize github with googlecode mercurial # 4. Synchronize github with googlecode mercurial
"${DIRECTORY}/sync_git_hg.sh" 2>&1 >>$LOG_FILE "${DIRECTORY}/sync_git_hg.sh" 2>&1 >>$LOG_FILE