michael@0: #! /bin/bash michael@0: michael@0: # Each buildbot-slave requires a bbenv.sh file that defines michael@0: # machine specific variables. This is an example file. michael@0: michael@0: michael@0: HOST=$(hostname | cut -d. -f1) michael@0: export HOST michael@0: michael@0: # if your machine's IP isn't registered in DNS, michael@0: # you must set appropriate environment variables michael@0: # that can be resolved locally. michael@0: # For example, if localhost.localdomain works on your system, set: michael@0: #HOST=localhost michael@0: #DOMSUF=localdomain michael@0: #export DOMSUF michael@0: michael@0: ARCH=$(uname -s) michael@0: michael@0: ulimit -c unlimited 2> /dev/null michael@0: michael@0: export NSPR_LOG_MODULES="pkix:1" michael@0: michael@0: #export JAVA_HOME_32= michael@0: #export JAVA_HOME_64= michael@0: michael@0: #enable if you have PKITS data michael@0: #export PKITS_DATA=$HOME/pkits/data/ michael@0: michael@0: NSS_BUILD_TARGET="clean nss_build_all" michael@0: JSS_BUILD_TARGET="clean all" michael@0: michael@0: MAKE=gmake michael@0: AWK=awk michael@0: PATCH=patch michael@0: michael@0: if [ "${ARCH}" = "SunOS" ]; then michael@0: AWK=nawk michael@0: PATCH=gpatch michael@0: ARCH=SunOS/$(uname -p) michael@0: fi michael@0: michael@0: if [ "${ARCH}" = "Linux" -a -f /etc/system-release ]; then michael@0: VERSION=`sed -e 's; release ;;' -e 's; (.*)$;;' -e 's;Red Hat Enterprise Linux Server;RHEL;' -e 's;Red Hat Enterprise Linux Workstation;RHEL;' /etc/system-release` michael@0: ARCH=Linux/${VERSION} michael@0: echo ${ARCH} michael@0: fi michael@0: michael@0: PROCESSOR=$(uname -p) michael@0: if [ "${PROCESSOR}" = "ppc64" ]; then michael@0: ARCH="${ARCH}/ppc64" michael@0: fi michael@0: if [ "${PROCESSOR}" = "powerpc" ]; then michael@0: ARCH="${ARCH}/ppc" michael@0: fi michael@0: michael@0: PORT_64_DBG=8543 michael@0: PORT_64_OPT=8544 michael@0: PORT_32_DBG=8545 michael@0: PORT_32_OPT=8546 michael@0: michael@0: if [ "${NSS_TESTS}" = "memleak" ]; then michael@0: PORT_64_DBG=8547 michael@0: PORT_64_OPT=8548 michael@0: PORT_32_DBG=8549 michael@0: PORT_32_OPT=8550 michael@0: fi