summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/google_generate_preprocessed.sh
blob: d204bb30720f6b26f1c3699ff2bd15ded85bdaa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# Copyright 2007 Google Inc. All Rights Reserved.
# Author: shess@google.com (Scott Hess)

cd src

mkdir bld
cd bld
../configure
FILES="keywordhash.h opcodes.c opcodes.h parse.c parse.h sqlite3.h"
OPTS=""
# These options should match those in ../../tools/config.mk.
OPTS="$OPTS -DSQLITE_OMIT_LOAD_EXTENSION=1"
make "OPTS=$OPTS" $FILES
cp -f $FILES ../preprocessed

cd ..
rm -rf bld

# TODO(shess) I can't find config.h, which exists in the original
# third_party/sqlite/ directory.  I also haven't found a client of it,
# yet, so maybe it's not a file we need.