diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-17 16:48:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-17 16:48:14 +0200 |
commit | db7297e33f23fc769b9bfc43616ec087cc068b70 (patch) | |
tree | 9df861a3b690e646babb875d4ac68d37e481f267 /dist.sh | |
parent | 89083807dc047bd86e71481dbbdf7c32d18cb2bc (diff) |
Add support for SQL Server in various build scripts
Diffstat (limited to 'dist.sh')
-rwxr-xr-x | dist.sh | 42 |
1 files changed, 40 insertions, 2 deletions
@@ -58,6 +58,8 @@ pgsql_options= pgsql_test_option= oracle_options= oracle_test_options= +mssql_options= +mssql_test_options= while [ $# -gt 0 ]; do case $1 in @@ -134,6 +136,16 @@ while [ $# -gt 0 ]; do oracle_test_options=$1 shift ;; + -mssql-options) + shift + mssql_options=$1 + shift + ;; + -mssql-test-options) + shift + mssql_test_options=$1 + shift + ;; *) error "unknown option: $1" exit 1 @@ -142,13 +154,14 @@ while [ $# -gt 0 ]; do done if [ "$db" = "" ]; then - db="oracle pgsql sqlite mysql" + db="mssql oracle 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-mssql/* rm -rf $out_root/libodb-oracle/* rm -rf $out_root/libodb-pgsql/* rm -rf $out_root/libodb-sqlite/* @@ -166,7 +179,8 @@ if [ $rebuild = y ]; then rm -rf $out_root/pack fi -mkdir -p $out_root/libodb\ +mkdir -p $out_root/libodb +mkdir -p $out_root/libodb-mssql mkdir -p $out_root/libodb-oracle mkdir -p $out_root/libodb-pgsql mkdir -p $out_root/libodb-sqlite @@ -235,6 +249,30 @@ 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-mssql +# +make -C `find_out_dir $src_root/libodb-mssql` \ +-f $src_root/libodb-mssql/makefile dist dist_prefix=$out_root/libodb-mssql + +cd $out_root/libodb-mssql + +if [ $rebuild = y ]; then + ./bootstrap + ./configure --with-libodb=../libodb \ + CXX=$cxx \ + CXXFLAGS="$CXXFLAGS" \ + $mssql_options +fi + +make -j 8 +make dist + +cd $wd + +cp $out_root/libodb-mssql/libodb-mssql-$ver.*.zip $out_root/pack/ +cp $out_root/libodb-mssql/libodb-mssql-$ver.*.tar.gz $out_root/pack/ +cp $out_root/libodb-mssql/libodb-mssql-$ver.*.tar.bz2 $out_root/pack/ + # Build libodb-oracle # make -C `find_out_dir $src_root/libodb-oracle` \ |