blob: 35db8c6a842703bf8fed989128167eb44111aad0 [file] [log] [blame]
david_williams42f9b242006-11-27 18:45:14 +00001#!/bin/sh
david_williams673ba392008-01-02 17:41:13 +00003# If "local" users have this file on their path,
4# that is, in "someDirectory" on the users local path,
david_williams0985c462007-08-29 18:24:10 +00005# then the bash "include source" function will find that version
david_williamscc773b12008-02-23 06:28:05 +00006# first, instead of this "standard" eclipse production one.
7# That is assuming users don't have "." on their path, which
8# they shouldn't. Many systems assumes ${HOME}/bin is on the
9# users path.
david_williams42f9b242006-11-27 18:45:14 +000010
david_williamscc773b12008-02-23 06:28:05 +000011# This file is intentionally named "shsource" to denote this is intended to
david_williams673ba392008-01-02 17:41:13 +000012# be included in other sh files, with "source" command, not
13# executed on its own.
david_williams42f9b242006-11-27 18:45:14 +000014
david_williams673ba392008-01-02 17:41:13 +000015# Some things _have_ to go in this file, instead of being an ant property,
16# since they may be used outside the contect of ant (or, before ant get's started).
17# as one example, anything used directly in the cc_config.xml file has to be
18# provided as environment variable, since it can not import ant property files
david_williams3a43f632007-12-12 09:42:20 +000019# like most ant project files can.
david_williams42f9b242006-11-27 18:45:14 +000020
david_williamscc773b12008-02-23 06:28:05 +000021# the top directory of build-related directories
david_williams42f9b242006-11-27 18:45:14 +000022export BUILD_HOME=/shared/webtools
david_williamscc773b12008-02-23 06:28:05 +000024# the following does not commonly vary, but must be specified "early"
25# so is specified in this file
david_williams2e0afe02008-01-02 04:11:40 +000026export RELENG_CONTROL=${BUILD_HOME}/releng.control
david_williams42f9b242006-11-27 18:45:14 +000027
david_williamscc773b12008-02-23 06:28:05 +000028# this variable must batch the screen number that Xvfb is using
david_williams2e0afe02008-01-02 04:11:40 +000029export DISPLAY=
david_williams0985c462007-08-29 18:24:10 +000030
david_williams842e4192007-12-09 07:44:35 +000031# these should be full, abosolute path to the respective home directories
32# on this particular build machine
33export ANT_HOME=/shared/webtools/apps/apache-ant-1.7.0
david_williams1e0ead82008-03-01 21:43:13 +000034export JAVA_4_HOME=/shared/webtools/apps/IBMJava2-SDK-1.4.2-10.0.ppc
david_williamscc756492008-03-01 18:36:39 +000035export JAVA_5_HOME=/shared/webtools/apps/ibm-java2-sdk-5.0-6.0-linux-ppc
david_williams2e0afe02008-01-02 04:11:40 +000036
david_williams3908b3d2007-12-09 18:55:08 +000037export CCDIR=/shared/webtools/apps/cruisecontrol-bin-2.7.1
david_williams42f9b242006-11-27 18:45:14 +000038
39export BASEOS=linux
40export BASEWS=gtk
41export BASEARCH=ppc
43# no local build properties, for production builds
david_williams673ba392008-01-02 17:41:13 +000044# for local builds, this should be set to a real directory,
david_williams536b5952007-12-09 06:03:17 +000045# so meaningful properties can be set for that local machine.
david_williams842e4192007-12-09 07:44:35 +000046# See the 'localBuildExample' directory for a starting example
david_williams42f9b242006-11-27 18:45:14 +000047export LOCAL_BUILD_PROPERTIES_DIR=
david_williams673ba392008-01-02 17:41:13 +000049# note: buildmaster email address should be "real" address
50# that is subscribed to the mailing list, if you want to send
david_williamscc773b12008-02-23 06:28:05 +000051# mail to mailing lists.
david_williams7c95ad22008-02-26 01:25:42 +000052export
david_williamscc773b12008-02-23 06:28:05 +000053export BUILD_BUILDMASTER_RETURN_NAME=wtpBuilder
david_williams10fefcc2008-01-09 21:30:40 +000054export BUILD_RESULT_URL=
david_williamsa04c1c72008-03-03 03:55:24 +000055# use following for CC 2.7.2
david_williams6afd2662007-08-20 06:43:52 +000058export
david_williams2e0afe02008-01-02 04:11:40 +000059export
david_williamsd79e5002008-01-30 03:10:08 +000060export BUILD_SUBJECT_PREFIX=WTPBUILD:
david_williams13d378c2007-08-22 04:04:54 +000061
david_williams21902522008-01-30 07:27:35 +000062# note: this file, is not normally in cvs,
63# to avoid "publishing" email addresses; but is maintained directly on
64# the build server.
65export EMAIL_PROPERTIES=${BUILD_HOME}/notification/
david_williamsd33d3a02007-08-22 04:40:40 +000067# controls quietness of logging to console
68# false means more output to console, true uses ant's logger
david_williams4332d2a2008-01-11 13:05:59 +000069export USE_LOGGER=true
david_williamsd33d3a02007-08-22 04:40:40 +000070
71#contols ANT's quietness level
david_williams673ba392008-01-02 17:41:13 +000072# true logs error and warnings only
david_williamscc773b12008-02-23 06:28:05 +000073export USE_QUIET=true
david_williamsb25ea8d2007-08-22 07:22:55 +000074
david_williams0985c462007-08-29 18:24:10 +000075# controls ANT's debug level
76# setting to true will result in TONS of ouput
david_williamscc773b12008-02-23 06:28:05 +000077export USE_DEBUG=false
david_williams4d17cf52007-11-19 03:27:13 +000078
david_williams673ba392008-01-02 17:41:13 +000079# should be true for production, false for local.
80# it can be set to true for local builds, but then the
david_williams3a43f632007-12-12 09:42:20 +000081# properties in need to be set to valid values.
david_williams17833ec2007-12-11 03:21:46 +000082export BUILD_UPLOAD=true
david_williams80a0b0a2007-12-11 02:38:34 +000083
david_williams673ba392008-01-02 17:41:13 +000084# if true, locally existing maps will be used as is, instead of being
85# checked out afresh. Set to false for production builds, so maps are
david_williams3a43f632007-12-12 09:42:20 +000086# always fresh.
david_williams4d17cf52007-11-19 03:27:13 +000087export USE_LOCAL_MAPS=false
david_williams842e4192007-12-09 07:44:35 +000088
david_williams673ba392008-01-02 17:41:13 +000089# normally, cvs logging output can be "really quiet", but if problems, then it can be turned back on
david_williams842e4192007-12-09 07:44:35 +000090# to get more potentially diagnostic information
91# TODO: if both of these are 'true' and error is generated by cvs ...
david_williams673ba392008-01-02 17:41:13 +000092# saying you can't set both to true.
93# we could put in some logic to prevent that, someday.
david_williams2e0afe02008-01-02 04:11:40 +000094export CVS_QUIET=true
95export CVS_REALLY_QUIET=true
david_williams673ba392008-01-02 17:41:13 +000096# these cvs values need to have write access if
97# tag.maps is true, as on production machine.
98# This is the ID used to both read, and
david_williams842e4192007-12-09 07:44:35 +000099# to tag releng map files.
david_williams673ba392008-01-02 17:41:13 +0000101# Note:
102# 'ext' protocol typically requires
david_williams842e4192007-12-09 07:44:35 +0000103# environment variable CVS_RSH to be set to ssh
104# So, we just always do it. Can't imagine it'd hurt
david_williams673ba392008-01-02 17:41:13 +0000105# if protocol was pserver, but could be removed in that
106# case, if desired.
107export CVS_RSH=ssh
david_williams2e0afe02008-01-02 04:11:40 +0000108export BUILD_CVS_READ_PROTOCOL=pserver
109export BUILD_CVS_READ_USER=anonymous
111export BUILD_CVS_WRITE_USER=david_williams
114export BUILD_CVS_ROOT=/cvsroot/webtools
david_williams673ba392008-01-02 17:41:13 +0000116# for builds on local machines, SKIPUSERS should be 'true' to avoid
david_williams2e0afe02008-01-02 04:11:40 +0000117# notifying users about those builds on your local machine
118export SKIPUSERS=false
david_williamsbd17e9e2008-01-20 05:05:16 +0000119
120export DOWNLOAD_ROOT=/home/data/httpd/
david_williams2171a5b2008-02-10 08:15:08 +0000121
david_williamscc773b12008-02-23 06:28:05 +0000122# Here this variable, SKIP_JAR_SIGNING, should be false for
123# production builds. But, the variable is set elsewhere to true,
124# such as in cc_config, for the R2 builds.
125# There is another variable, 'sign' in each components
126# to allow components to be the final say to allow signing.
127# This variable, SKIP_JAR_SIGNING, should always be true for
david_williamsd738a1b2008-02-28 05:55:35 +0000128# "local" builds.
david_williamscc773b12008-02-23 06:28:05 +0000129export SKIP_JAR_SIGNING=false
david_williams0be0d972008-02-16 05:38:57 +0000130
david_williamscc773b12008-02-23 06:28:05 +0000131# this is used especially during signing, where we need to execute
132# the signing script from a signer ID, while running as wtpBuild.
133# should be blank or omitted in local builds
david_williams0be0d972008-02-16 05:38:57 +0000134export REMOTE_SSH_COMMAND="ssh "