summaryrefslogtreecommitdiff
path: root/lang/sql/sqlite/tool/build-shell.sh
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /lang/sql/sqlite/tool/build-shell.sh
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'lang/sql/sqlite/tool/build-shell.sh')
-rw-r--r--lang/sql/sqlite/tool/build-shell.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/sql/sqlite/tool/build-shell.sh b/lang/sql/sqlite/tool/build-shell.sh
new file mode 100644
index 00000000..6a48299d
--- /dev/null
+++ b/lang/sql/sqlite/tool/build-shell.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# This script demonstrates how to do a full-featured build of the sqlite3
+# command-line shell on Linux.
+#
+# SQLite source code should be in a sibling directory named "sqlite". For
+# example, put SQLite sources in ~/sqlite/sqlite and run this script from
+# ~/sqlite/bld. There should be an appropriate Makefile in the current
+# directory as well.
+#
+make sqlite3.c
+gcc -o sqlite3 -g -Os -I. \
+ -DSQLITE_THREADSAFE=0 \
+ -DSQLITE_ENABLE_VFSTRACE \
+ -DSQLITE_ENABLE_STAT3 \
+ -DSQLITE_ENABLE_FTS4 \
+ -DSQLITE_ENABLE_RTREE \
+ -DHAVE_READLINE \
+ -DHAVE_USLEEP=1 \
+ ../sqlite/src/shell.c \
+ ../sqlite/src/test_vfstrace.c \
+ sqlite3.c -ldl -lreadline -lncurses