aboutsummaryrefslogtreecommitdiff
path: root/build/sqlite/configure
blob: 64b4f1bd19e0c89bf66c5ae281a727f71b6710b8 (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
#! /usr/bin/env bash

# file      : build/sqlite/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 SQLite database file name. Note that it WILL"
$echo "BE MODIFIED by the tests. If you do not specify a name, then a"
$echo "temporary on-disk database will be created. You can also specify"
$echo "':memory:' as a file name to use a temporary in-memory database."
$echo

db=`read_value`

opt=$dcf_root/db.options
drv=$dcf_root/db-driver

echo "--database '$db'" >$opt

echo "#!/bin/sh"                                              >$drv
echo "# dummy"                                               >>$drv
chmod 755 $drv