david_williams | 5125637 | 2010-04-20 21:04:25 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 2 | |
david_williams | 53f9de1 | 2008-01-02 19:31:06 +0000 | [diff] [blame] | 3 | # remember to leave no slashes on commonVariations in source command, |
| 4 | # so that users path is used to find it (first). But, path on |
| 5 | # commonComputedVariables means we expect to execute only our |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 6 | # version |
| 7 | |
david_williams | 4717703 | 2008-01-20 05:23:30 +0000 | [diff] [blame] | 8 | if [ -z $BUILD_INITIALIZED ] |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 9 | then |
david_williams | 4717703 | 2008-01-20 05:23:30 +0000 | [diff] [blame] | 10 | # if releng_control not set, we assume we are already in releng_control directory |
david_williams | c2f548c | 2008-07-21 04:06:47 +0000 | [diff] [blame] | 11 | if [ -z $RELENG_CONTROL ] |
| 12 | then |
david_williams | 4717703 | 2008-01-20 05:23:30 +0000 | [diff] [blame] | 13 | RELENG_CONROL=`pwd` |
david_williams | c2f548c | 2008-07-21 04:06:47 +0000 | [diff] [blame] | 14 | fi |
david_williams | f88f05c | 2008-01-02 21:24:46 +0000 | [diff] [blame] | 15 | pushd . |
| 16 | cd ${RELENG_CONTROL} |
david_williams | 39c5f65 | 2008-01-02 07:08:39 +0000 | [diff] [blame] | 17 | source commonVariations.shsource |
| 18 | source ${RELENG_CONTROL}/commonComputedVariables.shsource |
david_williams | f88f05c | 2008-01-02 21:24:46 +0000 | [diff] [blame] | 19 | popd |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 20 | fi |
| 21 | |
canderson | 06909d6 | 2012-08-02 19:05:10 +0000 | [diff] [blame] | 22 | # For most ant tasks, we want Java 6 |
| 23 | export JAVA_HOME=${JAVA_6_HOME} |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 24 | |
david_williams | c2f548c | 2008-07-21 04:06:47 +0000 | [diff] [blame] | 25 | ANT_CMD="${ANT_HOME}/bin/ant" |
david_williams | 8243960 | 2008-01-02 19:28:16 +0000 | [diff] [blame] | 26 | exec "$ANT_CMD" "$@" |