david_williams | 7825425 | 2008-12-09 20:30:22 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
david_williams | c2f548c | 2008-07-21 04:06:47 +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 |
| 6 | # version |
| 7 | |
| 8 | if [ -z $BUILD_INITIALIZED ] |
| 9 | then |
| 10 | # if releng_control not set, we assume we are already in releng_control directory |
| 11 | if [ -z $RELENG_CONTROL ] |
| 12 | then |
| 13 | RELENG_CONROL=`pwd` |
| 14 | fi |
| 15 | pushd . |
| 16 | cd ${RELENG_CONTROL} |
| 17 | source commonVariations.shsource |
| 18 | source ${RELENG_CONTROL}/commonComputedVariables.shsource |
| 19 | popd |
| 20 | fi |
| 21 | |
| 22 | |
david_williams | 169f6f6 | 2010-06-20 16:05:22 +0000 | [diff] [blame] | 23 | echo "Running ant at priority " $JOB_NICER |
david_williams | 88d04b2 | 2011-03-11 13:51:31 +0000 | [diff] [blame] | 24 | echo "args to ant: " "$@" |
david_williams | 169f6f6 | 2010-06-20 16:05:22 +0000 | [diff] [blame] | 25 | exec nice --adjustment $JOB_NICER "${RELENG_CONTROL}/ant.sh" "$@" |