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