diff options
-rwxr-xr-x | bdep/odb.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bdep/odb.sh b/bdep/odb.sh index 4cf87c7..0f71977 100755 --- a/bdep/odb.sh +++ b/bdep/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]*/)") |