blob: 6c676a176c270f667c3f4d2cffd48bb7d6490816 [file] [log] [blame]
david_williams42f9b242006-11-27 18:45:14 +00001#!/bin/sh
2
david_williams673ba392008-01-02 17:41:13 +00003# intentionally named "shsource" to denote this is intended to
4# be included in other sh files, with "source" command, not
5# executed on its own.
david_williams42f9b242006-11-27 18:45:14 +00006
7########################################################
8
david_williams842e4192007-12-09 07:44:35 +00009export PROJECT_HOME=${BUILD_HOME}/releng.control
david_williams42f9b242006-11-27 18:45:14 +000010
david_williams8f7802c2008-01-05 09:09:47 +000011export ANT_WORKING=${BUILD_HOME}/releng.control
david_williams2e0afe02008-01-02 04:11:40 +000012export BASE_BUILDERS=${BUILD_HOME}/basebuilders
13export PROJECT_BUILDERS=${BUILD_HOME}/projectBuilders
david_williams673ba392008-01-02 17:41:13 +000014# Set this to the relative path for the
15# directory that keeps the downloaded drivers
david_williams2e0afe02008-01-02 04:11:40 +000016# and pre-reqs
17export LOCAL_PREREQS_CACHE=${BUILD_HOME}/prereqsCache
david_williams673ba392008-01-02 17:41:13 +000018# must match cacheRoot in CC's web.xml
david_williams2e0afe02008-01-02 04:11:40 +000019export CACHE_ROOT=${BUILD_HOME}/logcache
20# must correspond to what's specified in CC's web.xml file, and config
21export LOG_DIR=${BUILD_HOME}/logs
22export PROJECT_TESTS=${BUILD_HOME}/tests
23export PROJECT_PROJECTS=${BUILD_HOME}/projects
david_williams6466bca2008-01-07 22:09:32 +000024# renamed from 'artifacts' to 'committers' to match downloads website.
25export PROJECT_ARTIFACTS=${BUILD_HOME}/committers
david_williams2e0afe02008-01-02 04:11:40 +000026
27# in a fresh install, we need to make sure some basic directories exist
28mkdir -p ${ANT_WORKING}
29mkdir -p ${BASE_BUILDERS}
30mkdir -p ${PROJECT_BUILDERS}
31mkdir -p ${LOCAL_PREREQS_CACHE}
32mkdir -p ${CACHE_ROOT}
33mkdir -p ${LOG_DIR}
34mkdir -p ${PROJECT_TESTS}
35mkdir -p ${PROJECT_PROJECTS}
36mkdir -p ${PROJECT_ARTIFACTS}
37
38export RELENG_BUILDER=webtools.releng/releng.wtpbuilder
39
40export RELENG=webtools.maps/releng
41export RELENGMAPS=webtools.maps
42export RELENGJSF=webtools.maps/releng.jsf
43export RELENGDALI=webtools.maps/releng.dali
44
david_williams75ccd372008-01-03 03:50:09 +000045# for now, always use Java 5 as native "home", but
46# scripts and paths may still use java 1.4
47export JAVA_HOME=${JAVA_5_HOME}
48
david_williams1956d7d2008-01-02 19:04:06 +000049export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}
david_williams42f9b242006-11-27 18:45:14 +000050
51# project name is resolved dynamically, as CC runs
david_williamsf6c80ca2007-08-20 07:12:19 +000052export LOG_DIR=${BUILD_HOME}/logs
david_williams42f9b242006-11-27 18:45:14 +000053
david_williams673ba392008-01-02 17:41:13 +000054# need for some PPC or Linux issues
david_williams42f9b242006-11-27 18:45:14 +000055export JAVA_HIGH_ZIPFDS=500
56
david_williams673ba392008-01-02 17:41:13 +000057# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +000058# notifying users about those builds on your local machine
59# but if not defined thus far, set to false for production build machine.
david_williams673ba392008-01-02 17:41:13 +000060if [ -z ${SKIPUSERS} ]
61then
david_williams2e0afe02008-01-02 04:11:40 +000062 export SKIPUSERS=false;
63fi
david_williams42f9b242006-11-27 18:45:14 +000064
david_williams673ba392008-01-02 17:41:13 +000065# We want everything in our processes to use UTC, even when we can't
david_williams1cc549d2007-08-29 01:28:19 +000066# change the time or timezone on the build machine.
67export TZ='UTC-0';
68
david_williams154cc0a2007-11-16 22:25:36 +000069
david_williams42f9b242006-11-27 18:45:14 +000070export BUILD_INITIALIZED="true"
71
david_williams673ba392008-01-02 17:41:13 +000072echo
david_williams42f9b242006-11-27 18:45:14 +000073echo " Project Home: ${PROJECT_HOME}"
74echo " Build Home: ${BUILD_HOME}"
75echo " DISPLAY: ${DISPLAY}"
david_williams673ba392008-01-02 17:41:13 +000076echo
david_williams42f9b242006-11-27 18:45:14 +000077echo " JAVA_4_HOME: ${JAVA_4_HOME}"
78echo " ${bootclasspath}"
david_williams673ba392008-01-02 17:41:13 +000079echo
david_williams42f9b242006-11-27 18:45:14 +000080echo " JAVA_5_HOME: ${JAVA_5_HOME}"
81echo " ${bootclasspath_15}"
david_williams673ba392008-01-02 17:41:13 +000082echo
david_williams2e0afe02008-01-02 04:11:40 +000083echo " ANT_HOME: ${ANT_HOME}"
david_williams673ba392008-01-02 17:41:13 +000084echo
david_williams2e0afe02008-01-02 04:11:40 +000085echo " PATH: ${PATH}"
david_williams673ba392008-01-02 17:41:13 +000086echo
david_williams2e0afe02008-01-02 04:11:40 +000087echo " BASEOS: ${BASEOS}"
88echo " BASEWS: ${BASEWS}"
david_williams42f9b242006-11-27 18:45:14 +000089echo " BASEARCH: ${BASEARCH}"
david_williams673ba392008-01-02 17:41:13 +000090echo
91echo " LOCAL_BUILD_PROPERTIES_DIR: ${LOCAL_BUILD_PROPERTIES_DIR}"
92echo
david_williams2e0afe02008-01-02 04:11:40 +000093echo " remember to check that X virtual frame buffer is running for headless JUnit testing";
94ps -ef | grep Xvfb
95echo
96