| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # | 2 # |
| 3 # This script is used to compile SQLite and package everything up | 3 # This script is used to compile SQLite and package everything up |
| 4 # so that it is ready to move to the SQLite website. | 4 # so that it is ready to move to the SQLite website. |
| 5 # | 5 # |
| 6 | 6 |
| 7 # Set srcdir to the name of the directory that contains the publish.sh | 7 # Set srcdir to the name of the directory that contains the publish.sh |
| 8 # script. | 8 # script. |
| 9 # | 9 # |
| 10 srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'` | 10 srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'` |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 make sqlite3.c | 26 make sqlite3.c |
| 27 CFLAGS="-Os -DSQLITE_ENABLE_FTS3=1 -DSQLITE_THREADSAFE=0" | 27 CFLAGS="-Os -DSQLITE_ENABLE_FTS3=1 -DSQLITE_THREADSAFE=0" |
| 28 NAME=sqlite3-$VERS-osx-x86.bin | 28 NAME=sqlite3-$VERS-osx-x86.bin |
| 29 echo '***** '"COMPILING $NAME..." | 29 echo '***** '"COMPILING $NAME..." |
| 30 gcc $CFLAGS -Itsrc sqlite3.c tsrc/shell.c -o $NAME -ldl | 30 gcc $CFLAGS -Itsrc sqlite3.c tsrc/shell.c -o $NAME -ldl |
| 31 strip $NAME | 31 strip $NAME |
| 32 chmod 644 $NAME | 32 chmod 644 $NAME |
| 33 gzip $NAME | 33 gzip $NAME |
| 34 mkdir -p doc | 34 mkdir -p doc |
| 35 mv $NAME.gz doc | 35 mv $NAME.gz doc |
| OLD | NEW |