dan | f6f8ac6 | 2013-05-27 17:19:58 +0000 | [diff] [blame] | 1 | |
| 2 | This file describes how to use the files in this directory to create a new |
| 3 | version of the "autoconf-amalgamation" package. |
| 4 | |
| 5 | 1. The following files should have executable permission: |
| 6 | |
| 7 | chmod 755 install-sh |
| 8 | chmod 755 missing |
| 9 | chmod 755 depcomp |
| 10 | chmod 755 config.sub |
| 11 | chmod 755 config.guess |
| 12 | |
| 13 | 2. Copy new versions of the following SQLite files into this directory: |
| 14 | |
| 15 | sqlite3.c |
| 16 | sqlite3.h |
| 17 | sqlite3ext.h |
| 18 | sqlite3.1 |
| 19 | sqlite3.pc.in |
| 20 | shell.c |
| 21 | |
| 22 | 3. Update the SQLite version number in the AC_INIT macro in file |
| 23 | configure.ac: |
| 24 | |
| 25 | AC_INIT(sqlite, 3.6.3, http://www.sqlite.org) |
| 26 | |
| 27 | 4. Run the following commands to push the version number change through |
| 28 | to the generated files. |
| 29 | |
| 30 | aclocal |
| 31 | autoconf |
| 32 | automake |
| 33 | |
| 34 | 5. Create the tclsqlite3.c file in the tea/generic directory. As follows: |
| 35 | |
| 36 | mkdir -p tea/generic |
| 37 | echo "#ifdef USE_SYSTEM_SQLITE" > tea/generic/tclsqlite3.c |
| 38 | echo "# include <sqlite3.h>" >> tea/generic/tclsqlite3.c |
| 39 | echo "#else" >> tea/generic/tclsqlite3.c |
| 40 | echo "#include \"../../sqlite3.c\"" >> tea/generic/tclsqlite3.c |
| 41 | echo "#endif" >> tea/generic/tclsqlite3.c |
| 42 | cat ../src/tclsqlite.c >> tea/generic/tclsqlite3.c |
| 43 | |
| 44 | 6. Update the SQLite version in the AC_INIT macro in file tea/configure.in: |
| 45 | |
| 46 | AC_INIT([sqlite], [3.6.3]) |
| 47 | |
| 48 | 7. From the 'tea' directory, run the following commands: |
| 49 | |
| 50 | autoconf |
| 51 | rm -rf autom4te.cache |
| 52 | |
| 53 | 8. Run "./configure && make dist". This builds a distribution package |
| 54 | named something like "sqlite-3.6.3.tar.gz". Rename to |
| 55 | "sqlite-amalgamation-3.6.3.tar.gz" and use. |
| 56 | |
| 57 | |