diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-25 10:45:16 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-25 14:49:57 -0300 |
commit | f36b26f8bc25ac9832d1ceeea207f46657482893 (patch) | |
tree | 363eedaeb6dd086581d3008fb632e5f17fcae956 /tools/build_snapshots.sh | |
parent | 7e6ab3edfdad4581d5cc54516f5690b0220480b6 (diff) | |
download | pfsense-f36b26f8bc25ac9832d1ceeea207f46657482893.zip pfsense-f36b26f8bc25ac9832d1ceeea207f46657482893.tar.gz |
Define BUILDER_TOOLS and BUILDER_ROOT on caller scripts and add extra checks
Diffstat (limited to 'tools/build_snapshots.sh')
-rwxr-xr-x | tools/build_snapshots.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/build_snapshots.sh b/tools/build_snapshots.sh index efecfae..77ff0f6 100755 --- a/tools/build_snapshots.sh +++ b/tools/build_snapshots.sh @@ -30,10 +30,8 @@ # OF THE POSSIBILITY OF SUCH DAMAGE. # -if [ ! -f ./build.conf ]; then - echo "You must first run ./set_version.sh !" - exit 1 -fi +export BUILDER_TOOLS=$(realpath $(dirname ${0})) +export BUILDER_ROOT=$(realpath "${BUILDER_TOOLS}/..") NO_UPLOAD="" LOOPED_SNAPSHOTS="" @@ -56,7 +54,7 @@ done # *** SOME UNKNOWN LAYERING REASON. # *** 04/07/2008, 11/04/2009 echo ">>> Execing build.conf" -. ./builder_defaults.sh +. ${BUILDER_TOOLS}/builder_defaults.sh # Keeps track of how many time builder has looped BUILDCOUNTER=0 |