|
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 |
|
7 HOST=$(hostname | cut -d. -f1) |
|
8 export 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 |
|
18 ARCH=$(uname -s) |
|
19 |
|
20 ulimit -c unlimited 2> /dev/null |
|
21 |
|
22 export 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 |
|
30 NSS_BUILD_TARGET="clean nss_build_all" |
|
31 JSS_BUILD_TARGET="clean all" |
|
32 |
|
33 MAKE=gmake |
|
34 AWK=awk |
|
35 PATCH=patch |
|
36 |
|
37 if [ "${ARCH}" = "SunOS" ]; then |
|
38 AWK=nawk |
|
39 PATCH=gpatch |
|
40 ARCH=SunOS/$(uname -p) |
|
41 fi |
|
42 |
|
43 if [ "${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} |
|
47 fi |
|
48 |
|
49 PROCESSOR=$(uname -p) |
|
50 if [ "${PROCESSOR}" = "ppc64" ]; then |
|
51 ARCH="${ARCH}/ppc64" |
|
52 fi |
|
53 if [ "${PROCESSOR}" = "powerpc" ]; then |
|
54 ARCH="${ARCH}/ppc" |
|
55 fi |
|
56 |
|
57 PORT_64_DBG=8543 |
|
58 PORT_64_OPT=8544 |
|
59 PORT_32_DBG=8545 |
|
60 PORT_32_OPT=8546 |
|
61 |
|
62 if [ "${NSS_TESTS}" = "memleak" ]; then |
|
63 PORT_64_DBG=8547 |
|
64 PORT_64_OPT=8548 |
|
65 PORT_32_DBG=8549 |
|
66 PORT_32_OPT=8550 |
|
67 fi |