diff options
-rwxr-xr-x | bpkg/odb.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bpkg/odb.sh b/bpkg/odb.sh index 913ca6e..72753fa 100755 --- a/bpkg/odb.sh +++ b/bpkg/odb.sh @@ -7,10 +7,14 @@ inc=() if test -d ../.bdep; then - # Use default configuration for headers. - # - cfg="$(bdep config list -d .. | \ + if [ -n "$1" ]; then + cfg="$1" + else + # Use default configuration for headers. + # + cfg="$(bdep config list -d .. | \ sed -r -ne 's#^(@[^ ]+ )?([^ ]+)/ .*default.*$#\2#p')" + fi inc+=("-I$(echo "$cfg"/libodb-[1-9]*/)") inc+=("-I$(echo "$cfg"/libodb-sqlite-[1-9]*/)") |