aboutsummaryrefslogtreecommitdiff
path: root/build/mssql/configure
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-16 09:50:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-16 09:50:11 +0200
commit7d74507aacb63f77b763c940ef6fb6c82cb2445a (patch)
tree9d92e44fd3a5de7a5463b170e5e0a9831d46abeb /build/mssql/configure
parent24f87489a4d315cc01ca9d49a3f0209522fe6729 (diff)
Add SQL Server support
Diffstat (limited to 'build/mssql/configure')
-rwxr-xr-xbuild/mssql/configure54
1 files changed, 54 insertions, 0 deletions
diff --git a/build/mssql/configure b/build/mssql/configure
new file mode 100755
index 0000000..5013609
--- /dev/null
+++ b/build/mssql/configure
@@ -0,0 +1,54 @@
+#! /usr/bin/env bash
+
+# file : build/mssql/configure
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+# license : GNU GPL v2; see accompanying LICENSE file
+
+#
+# dcf_root - dynamic configuration root
+#
+
+$echo
+$echo "Please enter the SQL Server client program path."
+$echo
+
+driver=`read_path --command sqlcmd`
+
+$echo
+$echo "Please enter the SQL Server database user."
+$echo
+
+user=`read_value "odb_test"`
+
+$echo
+$echo "Please enter the SQL Server database password."
+$echo
+
+passwd=`read_value "odb_test"`
+
+$echo
+$echo "Please enter the SQL Server database name. Note that it WILL BE"
+$echo "MODIFIED by the tests."
+$echo
+
+db=`read_value "odb_test"`
+
+$echo
+$echo "Please enter the SQL Server instance address."
+$echo
+
+server=`read_value ""`
+
+opt=$dcf_root/db.options
+drv=$dcf_root/db-driver
+
+echo "--user '$user'" >$opt
+echo "--password '$passwd'" >>$opt
+echo "--database '$db'" >>$opt
+echo "--server '$server'" >>$opt
+
+echo "#!/bin/sh" >$drv
+echo "opt=\`cat $opt\`" >>$drv
+echo "eval $scf_root/mssql/mssql --driver $driver \$opt \$*" >>$drv
+chmod 755 $drv