# -*-Shell-script-*- # # Common functions for MyPLC build scripts (build_devel.sh and # build.sh) # # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # # $Id$ # PATH=/sbin:/bin:/usr/sbin:/usr/bin # In both a normal CVS environment and a PlanetLab RPM # build environment, all of our dependencies are checked out into # directories at the same level as us. if [ -d ../build ] ; then PATH=$PATH:../build srcdir=.. else echo "Error: Could not find $(cd .. && pwd -P)/build/" exit 1 fi export PATH . build.common pl_process_fedora_options $@ shiftcount=$? shift $shiftcount # XXX Backwards compatibility with old myplc-devel environment # We may be running inside a myplc-devel environment, which can # override these defaults. if [ -f /etc/planetlab/plc_config ] ; then . /etc/planetlab/plc_config [ ! -z "$PLC_DEVEL_FEDORA_RELEASE" ] && pl_FEDORA_RELEASE=$PLC_DEVEL_FEDORA_RELEASE [ ! -z "$PLC_DEVEL_FEDORA_ARCH" ] && pl_FEDORA_ARCH=$PLC_DEVEL_FEDORA_ARCH [ ! -z "$PLC_DEVEL_FEDORA_URL" ] && pl_FEDORA_URL=$PLC_DEVEL_FEDORA_URL fi # Do not tolerate errors set -e # Be verbose set -x # this is fragile, as the actual layout may vary from one mirror to the other # however this should be in line with the layouts obtained # when running build/vbuild-fedora-mirror.sh function yum_conf_to_build_host () { build_dir=$1; shift BUILD_HOST=$(hostname) cat <