1#! /bin/bash 2 3# Each buildbot-slave requires a bbenv.sh file that defines 4# machine specific variables. This is an example file. 5 6 7HOST=$(hostname | cut -d. -f1) 8export HOST 9 10# if your machine's IP isn't registered in DNS, 11# you must set appropriate environment variables 12# that can be resolved locally. 13# For example, if localhost.localdomain works on your system, set: 14#HOST=localhost 15#DOMSUF=localdomain 16#export DOMSUF 17 18ARCH=$(uname -s) 19 20ulimit -c unlimited 2> /dev/null 21 22export NSPR_LOG_MODULES="pkix:1" 23 24#export JAVA_HOME_32= 25#export JAVA_HOME_64= 26 27#enable if you have PKITS data 28#export PKITS_DATA=$HOME/pkits/data/ 29 30NSS_BUILD_TARGET="clean nss_build_all" 31JSS_BUILD_TARGET="clean all" 32 33MAKE=gmake 34AWK=awk 35PATCH=patch 36 37if [ "${ARCH}" = "SunOS" ]; then 38 AWK=nawk 39 PATCH=gpatch 40 ARCH=SunOS/$(uname -p) 41fi 42 43if [ "${ARCH}" = "Linux" -a -f /etc/system-release ]; then 44 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` 45 ARCH=Linux/${VERSION} 46 echo ${ARCH} 47fi 48 49PROCESSOR=$(uname -p) 50if [ "${PROCESSOR}" = "ppc64" ]; then 51 ARCH="${ARCH}/ppc64" 52fi 53if [ "${PROCESSOR}" = "powerpc" ]; then 54 ARCH="${ARCH}/ppc" 55fi 56 57PORT_64_DBG=8543 58PORT_64_OPT=8544 59PORT_32_DBG=8545 60PORT_32_OPT=8546 61 62if [ "${NSS_TESTS}" = "memleak" ]; then 63 PORT_64_DBG=8547 64 PORT_64_OPT=8548 65 PORT_32_DBG=8549 66 PORT_32_OPT=8550 67fi 68