aboutsummaryrefslogtreecommitdiff
path: root/build/sqlite
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-21 17:25:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-21 17:25:58 +0200
commitec564b14a5f4558d34578a1e10129f910539fa49 (patch)
tree6094727331c44dab4974e7c11397b48b12ec0148 /build/sqlite
parent9106867c0c70bae196c1b38e9594f0340dcc9698 (diff)
Add developer build system SQLite infrastructure
Diffstat (limited to 'build/sqlite')
-rwxr-xr-xbuild/sqlite/configure28
1 files changed, 28 insertions, 0 deletions
diff --git a/build/sqlite/configure b/build/sqlite/configure
new file mode 100755
index 0000000..64b4f1b
--- /dev/null
+++ b/build/sqlite/configure
@@ -0,0 +1,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