Debian Codegraph @

tools/buildbot/slaves/svn-x64-macosx/setenv.sh

raw
1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing,
12 # software distributed under the License is distributed on an
13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 # KIND, either express or implied. See the License for the
15 # specific language governing permissions and limitations
16 # under the License.
17
18 ## This script calls a helper that provides the folloing environemnt
19 ## variables:
20 ##
21 ## PATH The search path
22 ## SVNBB_BDB Berkeley DB installation prefix
23 ## SVNBB_SWIG Swig installation prefix
24 ## SVNBB_SERF Serf installation prefix
25 ## Note: Serf should be built only
26 ## with the system APR/-Util.
27 ## SVNBB_APR Path of the default APR
28 ## SVNBB_APRUTIL Path of the default APR-Util
29 ## SVNBB_APR_13_NOTHREAD Path of APR-1.3 with threading disabled
30 ## SVNBB_APR_20_DEV Path of APR-2.0
31 ## SVNBB_JUNIT The path of the junit.jar
32 ## SVNBB_PARALLEL Optional: parallelization; defaults to 2
33 ## SVNBB_PYTHON3ENV Optional: Python 3 virtual environment
34 ##
35 ## The invoking script will set local variable named ${scripts} that
36 ## is the absolute path the parent of this file.
37
38 # Modify this to suit your deployment
39 environment=$(cd "${scripts}/../.." && pwd)/environment.sh
40
41 eval $(${environment})
42 SVNBB_PARALLEL="${SVNBB_PARALLEL-2}"
43
44 export PATH
45 export SVNBB_BDB
46 export SVNBB_SWIG
47 export SVNBB_SERF
48 export SVNBB_APR_13_NOTHREAD
49 export SVNBB_APR
50 export SVNBB_APRUTIL
51 export SVNBB_APR_20_DEV
52 export SVNBB_JUNIT
53 export SVNBB_PARALLEL
54 export SVNBB_PYTHON3ENV
55
56
57 # Set the absolute source path
58 abssrc=$(pwd)
59
60 # Set the path to the RAMdisk device name file
61 ramconf=$(dirname "${abssrc}")/ramdisk.conf
62
63 # The RAMdisk volume name is the same as the name of the builder
64 volume_name=$(basename $(dirname "${abssrc}"))
65 if [ -z "${volume_name}" ]; then
66 echo "Missing config parameter: RAMdisk volume name"
67 exit 1
68 fi
69
70 # Set the absolute build path
71 absbld="/Volumes/${volume_name}"