diff options
author | Oz Linden <oz@lindenlab.com> | 2016-06-17 14:42:48 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2016-06-17 14:42:48 -0400 |
commit | 26cbfbbc0cf09182593c2bc16ac89b6403b701d4 (patch) | |
tree | 92a44d7f6969a1f7fe845148bc1f339b9707af08 /build.sh | |
parent | 1a3f7b599e3ed71216ebb7bad1365896f8ffca11 (diff) |
simplify early failures
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 17 |
1 files changed, 7 insertions, 10 deletions
@@ -140,9 +140,8 @@ build() local variant="$1" if $build_viewer then - "$autobuild" build --no-configure -c $variant - build_ok=$? - + "$autobuild" build --no-configure -c $variant || fatal "failed building $variant" + # Run build extensions if [ $build_ok -eq 0 -a -d ${build_dir}/packages/build-extensions ] then @@ -155,14 +154,12 @@ build() fi # *TODO: Make this a build extension. - package_llphysicsextensions_tpv - tpvlib_build_ok=$? - if [ $build_ok -eq 0 -a $tpvlib_build_ok -eq 0 ] - then + package_llphysicsextensions_tpv || fatal "failed building llphysicsextensions packages" + + echo true >"$build_dir"/build_ok + else + echo "Skipping build due to configuration build_viewer=${build_viewer}" echo true >"$build_dir"/build_ok - else - echo false >"$build_dir"/build_ok - fi fi } |