Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/sqlite/src/tool/mkautoconfamal.sh

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/tool/loadfts.c ('k') | third_party/sqlite/src/tool/mkkeywordhash.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # This script is used to build the amalgamation autoconf package. 2 # This script is used to build the amalgamation autoconf package.
3 # It assumes the following: 3 # It assumes the following:
4 # 4 #
5 # 1. The files "sqlite3.c", "sqlite3.h" and "sqlite3ext.h" 5 # 1. The files "sqlite3.c", "sqlite3.h" and "sqlite3ext.h"
6 # are available in the current directory. 6 # are available in the current directory.
7 # 7 #
8 # 2. Variable $TOP is set to the full path of the root directory 8 # 2. Variable $TOP is set to the full path of the root directory
9 # of the SQLite source tree. 9 # of the SQLite source tree.
10 # 10 #
(...skipping 25 matching lines...) Expand all
36 rm -rf $TMPSPACE 36 rm -rf $TMPSPACE
37 cp -R $TOP/autoconf $TMPSPACE 37 cp -R $TOP/autoconf $TMPSPACE
38 38
39 cp sqlite3.c $TMPSPACE 39 cp sqlite3.c $TMPSPACE
40 cp sqlite3.h $TMPSPACE 40 cp sqlite3.h $TMPSPACE
41 cp sqlite3ext.h $TMPSPACE 41 cp sqlite3ext.h $TMPSPACE
42 cp $TOP/sqlite3.1 $TMPSPACE 42 cp $TOP/sqlite3.1 $TMPSPACE
43 cp $TOP/sqlite3.pc.in $TMPSPACE 43 cp $TOP/sqlite3.pc.in $TMPSPACE
44 cp $TOP/src/shell.c $TMPSPACE 44 cp $TOP/src/shell.c $TMPSPACE
45 45
46 chmod 755 $TMPSPACE/install-sh
47 chmod 755 $TMPSPACE/missing
48 chmod 755 $TMPSPACE/depcomp
49 chmod 755 $TMPSPACE/config.sub
50 chmod 755 $TMPSPACE/config.guess
51
52 cat $TMPSPACE/configure.ac | 46 cat $TMPSPACE/configure.ac |
53 sed "s/AC_INIT(sqlite, .*, http:\/\/www.sqlite.org)/AC_INIT(sqlite, $VERSION, ht tp:\/\/www.sqlite.org)/" > $TMPSPACE/tmp 47 sed "s/--SQLITE-VERSION--/$VERSION/" > $TMPSPACE/tmp
54 mv $TMPSPACE/tmp $TMPSPACE/configure.ac 48 mv $TMPSPACE/tmp $TMPSPACE/configure.ac
55 49
56 cd $TMPSPACE 50 cd $TMPSPACE
57 aclocal 51 autoreconf -i
58 autoconf 52 #libtoolize
59 automake 53 #aclocal
54 #autoconf
55 #automake --add-missing
60 56
61 mkdir -p tea/generic 57 mkdir -p tea/generic
62 echo "#ifdef USE_SYSTEM_SQLITE" > tea/generic/tclsqlite3.c 58 echo "#ifdef USE_SYSTEM_SQLITE" > tea/generic/tclsqlite3.c
63 echo "# include <sqlite3.h>" >> tea/generic/tclsqlite3.c 59 echo "# include <sqlite3.h>" >> tea/generic/tclsqlite3.c
64 echo "#else" >> tea/generic/tclsqlite3.c 60 echo "#else" >> tea/generic/tclsqlite3.c
65 echo "#include \"sqlite3.c\"" >> tea/generic/tclsqlite3.c 61 echo "#include \"sqlite3.c\"" >> tea/generic/tclsqlite3.c
66 echo "#endif" >> tea/generic/tclsqlite3.c 62 echo "#endif" >> tea/generic/tclsqlite3.c
67 cat $TOP/src/tclsqlite.c >> tea/generic/tclsqlite3.c 63 cat $TOP/src/tclsqlite.c >> tea/generic/tclsqlite3.c
68 64
69 cat tea/configure.in | 65 cat tea/configure.ac |
70 sed "s/AC_INIT(\[sqlite\], .*)/AC_INIT([sqlite], [$VERSION])/" > tmp 66 sed "s/AC_INIT(\[sqlite\], .*)/AC_INIT([sqlite], [$VERSION])/" > tmp
71 mv tmp tea/configure.in 67 mv tmp tea/configure.ac
72 68
73 cd tea 69 cd tea
74 autoconf 70 autoconf
75 rm -rf autom4te.cache 71 rm -rf autom4te.cache
76 72
77 cd ../ 73 cd ../
78 ./configure && make dist 74 ./configure && make dist
79 tar -xzf sqlite-$VERSION.tar.gz 75 tar -xzf sqlite-$VERSION.tar.gz
80 mv sqlite-$VERSION sqlite-autoconf-$ARTIFACT 76 mv sqlite-$VERSION sqlite-autoconf-$ARTIFACT
81 tar -czf sqlite-autoconf-$ARTIFACT.tar.gz sqlite-autoconf-$ARTIFACT 77 tar -czf sqlite-autoconf-$ARTIFACT.tar.gz sqlite-autoconf-$ARTIFACT
82 mv sqlite-autoconf-$ARTIFACT.tar.gz .. 78 mv sqlite-autoconf-$ARTIFACT.tar.gz ..
83
OLDNEW
« no previous file with comments | « third_party/sqlite/src/tool/loadfts.c ('k') | third_party/sqlite/src/tool/mkkeywordhash.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698