b4c81223c5
are made only when changes are detected, so it should be ok.
26 lines
523 B
Bash
Executable file
26 lines
523 B
Bash
Executable file
#!/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
|
|
touch $LOG_FILE
|
|
|
|
|
|
# 1. Update git directory
|
|
"${DIRECTORY}/update_git.sh" 2>&1 >>$LOG_FILE
|
|
|
|
# 2. Go through branches and generates builds
|
|
"${DIRECTORY}/build_branches.sh" 2>&1 >>$LOG_FILE
|
|
|
|
# 3. upload to ftp server
|
|
"${DIRECTORY}/upload_ftp.sh" 2>&1 >>$LOG_FILE
|
|
|
|
# 4. Synchronize github with googlecode mercurial
|
|
"${DIRECTORY}/sync_git_hg.sh" 2>&1 >>$LOG_FILE
|
|
|
|
|