blob: fd3ac5894471ba9111724c8c153a43d58745716f [file] [log] [blame]
david_williams6443ac52010-08-05 23:15:41 +00001#!/usr/bin/env bash
2#
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
8if [ -z $BUILD_INITIALIZED ]
9then
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
20fi
21
david_williams6443ac52010-08-05 23:15:41 +000022echo "Running ant at priority " $JOB_NOT_NICE
david_williams88d04b22011-03-11 13:51:31 +000023echo "args to ant: " "$@"
david_williams6443ac52010-08-05 23:15:41 +000024exec nice --adjustment $JOB_NOT_NICE "${RELENG_CONTROL}/ant.sh" "$@"