summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdist.sh28
1 files changed, 26 insertions, 2 deletions
diff --git a/dist.sh b/dist.sh
index 41b4781..1aaa1e7 100755
--- a/dist.sh
+++ b/dist.sh
@@ -1,4 +1,4 @@
-#! /usr/bin/env bash
+ #! /usr/bin/env bash
# Create ODB source distributions
#
@@ -75,13 +75,15 @@ while [ $# -gt 0 ]; do
done
if [ "$db" = "" ]; then
- db="sqlite mysql"
+ db="pgsql sqlite mysql"
fi
# Clean everything up if we are rebuilding.
#
if [ $rebuild = y ]; then
rm -rf $out_root/libodb/*
+ rm -rf $out_root/libodb-pgsql/*
+ rm -rf $out_root/libodb-sqlite/*
rm -rf $out_root/libodb-mysql/*
rm -rf $out_root/libodb-tracer/*
rm -rf $out_root/libodb-boost/*
@@ -98,6 +100,8 @@ if [ $rebuild = y ]; then
fi
mkdir -p $out_root/libodb
+mkdir -p $out_root/libodb-pgsql
+mkdir -p $out_root/libodb-sqlite
mkdir -p $out_root/libodb-mysql
mkdir -p $out_root/libodb-tracer
mkdir -p $out_root/libodb-boost
@@ -162,6 +166,26 @@ cp $out_root/libodb/libodb-$ver.zip $out_root/pack/
cp $out_root/libodb/libodb-$ver.tar.gz $out_root/pack/
cp $out_root/libodb/libodb-$ver.tar.bz2 $out_root/pack/
+# Build libodb-pgsql
+#
+make -C $src_root/libodb-pgsql dist dist_prefix=$out_root/libodb-pgsql
+
+cd $out_root/libodb-pgsql
+
+if [ $rebuild = y ]; then
+ ./bootstrap
+ ./configure --with-libodb=../libodb CXX=$cxx CXXFLAGS="$CXXFLAGS"
+fi
+
+make -j 8
+make dist
+
+cd $wd
+
+cp $out_root/libodb-pgsql/libodb-pgsql-$ver.zip $out_root/pack/
+cp $out_root/libodb-pgsql/libodb-pgsql-$ver.tar.gz $out_root/pack/
+cp $out_root/libodb-pgsql/libodb-pgsql-$ver.tar.bz2 $out_root/pack/
+
# Build libodb-sqlite
#
make -C $src_root/libodb-sqlite dist dist_prefix=$out_root/libodb-sqlite