#!/bin/sh # # set environment to run GIT update umask 002 export MYSQLLIBS="/usr/lib64/mysql/libmysqlclient.a -lz" export MYSQLINC=/usr/include/mysql export MACHTYPE=x86_64 export HGCGI=/usr/local/apache/cgi-bin export USE_BAM=1 export USE_PNG=1 export USE_SSL=1 export KNETFILE_HOOKS=1 # export SAMDIR=/hive/data/outside/samtools/samtools-0.1.8/x86_64 # export SAMINC=${SAMDIR} # export SAMLIB=${SAMDIR}/libbam.a export PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/cluster/bin/${MACHTYPE}:/cluster/home/${LOGNAME}/bin/${MACHTPE}:/cluster/home/${LOGNAME}/bin:/usr/bin/X11:/cluster/home/${LOGNAME}/bin:/cluster/home/${LOGNAME}/bin/${MACHTYPE} export MACHINE_NAME=`uname -n` if [ "hgwdev" != "${MACHINE_NAME}" ]; then echo "ERROR: must be run on hgwdev, this machine is: ${MACHINE_NAME}" exit 255; fi if [ -z "${USER}" ]; then USER=${LOGNAME} export USER fi # better to clean source tree before updating it, this will lead # to a cleaner report cd ~/kent/src make clean > /dev/null 2> /dev/null rm -f tags # not necessary, but this is where it is happening cd ~/kent /usr/bin/git pull 2>&1 | \ mail -s 'GIT update report kent' ${LOGNAME} # And then, let's build it all cd ~/kent/src MAKE="make -j 4" make -j 4 cgi > daily.out 2>&1 # If there are any errors, they will come via separate email from cron egrep -y "erro|warn" daily.out | grep -v "\-Werror" | \ egrep -v "disabling jobserver mode|gbExtFile.o gbWarn.o gbMiscDiff.o|-o hgTracks" make tags-all > /dev/null 2> /dev/null