blob: 52cf34b896ea39f14e32dff6d74637a3ae48e501 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#! /usr/bin/env bash
# file : build/mssql/configure
# 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/mssql.options
drv=$dcf_root/mssql-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
|