3 # This script is used to compile SQLite and package everything up
4 # so that it is ready to move to the SQLite website.
7 # Set srcdir to the name of the directory that contains the publish.sh
10 srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'`
14 cp $srcdir/Makefile.linux-gcc ./Makefile
15 chmod +x $srcdir/install-sh
17 # Get the current version number - needed to help build filenames
19 VERS=`cat $srcdir/VERSION`
20 VERSW=`sed 's/\./_/g' $srcdir/VERSION`
21 echo "VERSIONS: $VERS $VERSW"
23 # Start by building an sqlite shell for linux.
27 CFLAGS="-Os -DSQLITE_ENABLE_FTS3=1 -DSQLITE_THREADSAFE=0"
28 NAME=sqlite3-$VERS-osx-x86.bin
29 echo '***** '"COMPILING $NAME..."
30 gcc $CFLAGS -Itsrc sqlite3.c tsrc/shell.c -o $NAME -ldl