summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-04-28 17:10:45 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-05-03 11:15:59 +0200
commit6d3a3a53a2aaf8208368d81fa47550259810b770 (patch)
tree1cbb2dac55827b21fc2fbf6f14b6f5413d829570
parent842ae83b5072bfea997cd4e07217596c6c6c6142 (diff)
Add pgsql support to dist build
-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