aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbrep/odb.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/brep/odb.sh b/brep/odb.sh
index d68b28f..3f8cef2 100755
--- a/brep/odb.sh
+++ b/brep/odb.sh
@@ -1,6 +1,15 @@
#! /usr/bin/env bash
-odb -d pgsql --std c++11 --generate-query --generate-schema \
+trap 'exit 1' ERR
+
+odb=odb
+lib="\
+-I$HOME/work/odb/libodb-sqlite-default \
+-I$HOME/work/odb/libodb-sqlite \
+-I$HOME/work/odb/libodb-default \
+-I$HOME/work/odb/libodb"
+
+$odb $lib -d pgsql --std c++11 --generate-query --generate-schema \
--schema-format sql --schema-format embedded \
--odb-epilogue '#include <brep/wrapper-traits>' \
--hxx-prologue '#include <brep/wrapper-traits>' \