OsmAnd/build-scripts/daily_build.sh

32 lines
613 B
Bash
Raw Normal View History

2011-01-23 12:45:18 +01:00
#!/bin/sh
DIRECTORY=$(cd `dirname $0` && pwd)
## VARIABLES ###
LOG_DIR="$DIRECTORY"/logs
DATE=$(date +%d-%m-%y)
LOG_FILE="$LOG_DIR/${DATE}.log"
mkdir $LOG_DIR
# check build already run today
if [ -e "$LOG_FILE" ]; then
echo "Build already ran today"
exit
2011-01-23 12:45:18 +01:00
fi
touch $LOG_FILE
# 1. Update git directory
"${DIRECTORY}/update_git.sh" &> $LOG_FILE
# 2. Go through branches and generates builds
"${DIRECTORY}/build_branches.sh" &> $LOG_FILE
# 3. upload to ftp server
"${DIRECTORY}/upload_ftp.sh" &> $LOG_FILE
2011-01-23 12:45:18 +01:00
# 4. Synchronize github with googlecode mercurial
"${DIRECTORY}/sync_git_hg.sh" &> $LOG_FILE