2 # this is the main build script for build.samba.org
3 # it gets run on all the build boxes via cron
5 # any errors get put in build.log
7 # we used a fixed path that is a superset of the required paths.
8 PATH=~/bin:/usr/local/bin:/usr/bin:/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/bsd
13 # go to our main directory
14 cd ~/build_farm || exit 1
21 # we only want the short name of the host - use cut for portability
22 host=`hostname | cut -d. -f1`
24 # make sure the password isn't readable by anyone
27 # grab the latest versions of the scripts
28 rsync --delete --include='*.fns' --exclude='*' --timeout=200 -q -az samba.org::build_farm/ .
30 # load general functions
33 if [ -f $host.fns ]; then
34 # load host specific functions
35 $build_test_used_fns_file = "$host.fns"
37 $build_test_used_fns_file = "generic.fns"
39 . $build_test_used_fns_file