#!/bin/bash # this is the main build script for build.samba.org # it gets run on all the build boxes via cron # any errors get put in build.log # we used a fixed path that is a superset of the required paths. PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/bsd export PATH build_test_id=`$Id$` # go to our main directory cd ~/build_farm || exit 1 ( echo date # we only want the short name of the host - use cut for portability host=`hostname | cut -d. -f1` # make sure the password isn't readable by anyone chmod 600 .password # grab the latest versions of the scripts rsync --delete --include='*.fns' --exclude='*' --timeout=200 -q -az samba.org::build_farm/ . # load general functions . build_test.fns if [ -f $host.fns ]; then # load host specific functions $build_test_used_fns_file = "$host.fns" else $build_test_used_fns_file = "generic.fns" fi . $build_test_used_fns_file ) >> build.log 2>&1