aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-15 19:36:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-15 19:36:54 +0200
commit9cfbec87ba1d28a38232d30805f910f03692e9f5 (patch)
treebc90d8043f45414a23e88348c21e13091f85ea9e
parent56d6e6f19f35fc732837319106b875436680dac6 (diff)
Update odb.sh
-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>' \