summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-06-20 21:45:09 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-06-20 21:45:09 -0400
commitbb6cc24d4a6a6ae49e46572d5cdf472c663df581 (patch)
tree2408cd64421d4b62398eac4a120189ff61e8c515
parentc880b5428d2efab8d733b0e181ebc7ece2ea2df2 (diff)
adjust to be ready for the next version of conf.shHEADmaster
-rwxr-xr-x.local/bin/autobuild.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/.local/bin/autobuild.sh b/.local/bin/autobuild.sh
index 307f20f..3b2c652 100755
--- a/.local/bin/autobuild.sh
+++ b/.local/bin/autobuild.sh
@@ -44,8 +44,14 @@ main() {
# Configuration parsing ################################################
. "$(librelib conf)"
- load_files libretools
- check_vars libretools WORKDIR ABSLIBRERECV ABSLIBRESEND
+ if type load_conf &>/dev/null; then
+ # new way
+ load_conf libretools.conf WORKDIR ABSLIBRERECV ABSLIBRESEND
+ else
+ # old way
+ load_files libretools
+ check_vars libretools WORKDIR ABSLIBRERECV ABSLIBRESEND
+ fi
# Lock to pevent conflicting runs ######################################
lock 9 "${WORKDIR}/autobuilder.lock" "Waiting for previous run of %q to finish" "$0"