diff options
-rwxr-xr-x | libbrep/odb.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libbrep/odb.sh b/libbrep/odb.sh index d4e6604..e2ba564 100755 --- a/libbrep/odb.sh +++ b/libbrep/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-pgsql-[1-9]*/)") |