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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/max-limits.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 #
11 # 3. There is nothing of value in the ./mkpkg_tmp_dir directory. 11 # 3. There is nothing of value in the ./mkpkg_tmp_dir directory.
12 # This is important, as the script executes "rm -rf ./mkpkg_tmp_dir". 12 # This is important, as the script executes "rm -rf ./mkpkg_tmp_dir".
13 # 13 #
14 14
15 15
16 # Bail out of the script if any command returns a non-zero exit 16 # Bail out of the script if any command returns a non-zero exit
17 # status. Or if the script tries to use an unset variable. These 17 # status. Or if the script tries to use an unset variable. These
18 # may fail for old /bin/sh interpreters. 18 # may fail for old /bin/sh interpreters.
19 # 19 #
20 set -e 20 set -e
21 set -u 21 set -u
22 22
23 TMPSPACE=./mkpkg_tmp_dir 23 TMPSPACE=./mkpkg_tmp_dir
24 VERSION=`cat $TOP/VERSION` 24 VERSION=`cat $TOP/VERSION`
25 HASH=`sed 's/^\(..........\).*/\1/' $TOP/manifest.uuid`
26 DATETIME=`grep '^D' $TOP/manifest | sed -e 's/[^0-9]//g' -e 's/\(............\). */\1/'`
25 27
26 # Set global variable $ARTIFACT to the "3xxyyzz" string incorporated 28 # If this script is given an argument of --snapshot, then generate a
27 # into artifact filenames. And $VERSION2 to the "3.x.y[.z]" form. 29 # snapshot tarball named for the current checkout SHA1 hash, rather than
28 xx=`echo $VERSION|sed 's/3\.\([0-9]*\)\..*/\1/'` 30 # the version number.
29 yy=`echo $VERSION|sed 's/3\.[^.]*\.\([0-9]*\).*/\1/'` 31 #
30 zz=0 32 if test "$#" -ge 1 -a x$1 != x--snapshot
31 set +e 33 then
32 zz=`echo $VERSION|sed 's/3\.[^.]*\.[^.]*\.\([0-9]*\).*/\1/'|grep -v '\.'` 34 # Set global variable $ARTIFACT to the "3xxyyzz" string incorporated
33 set -e 35 # into artifact filenames. And $VERSION2 to the "3.x.y[.z]" form.
34 ARTIFACT=`printf "3%.2d%.2d%.2d" $xx $yy $zz` 36 xx=`echo $VERSION|sed 's/3\.\([0-9]*\)\..*/\1/'`
37 yy=`echo $VERSION|sed 's/3\.[^.]*\.\([0-9]*\).*/\1/'`
38 zz=0
39 set +e
40 zz=`echo $VERSION|sed 's/3\.[^.]*\.[^.]*\.\([0-9]*\).*/\1/'|grep -v '\.'`
41 set -e
42 TARBALLNAME=`printf "sqlite-autoconf-3%.2d%.2d%.2d" $xx $yy $zz`
43 else
44 TARBALLNAME=sqlite-snapshot-$DATETIME
45 fi
35 46
36 rm -rf $TMPSPACE 47 rm -rf $TMPSPACE
37 cp -R $TOP/autoconf $TMPSPACE 48 cp -R $TOP/autoconf $TMPSPACE
38 49 cp sqlite3.c $TMPSPACE
39 cp sqlite3.c $TMPSPACE 50 cp sqlite3.h $TMPSPACE
40 cp sqlite3.h $TMPSPACE 51 cp sqlite3ext.h $TMPSPACE
41 cp sqlite3ext.h $TMPSPACE 52 cp $TOP/sqlite3.1 $TMPSPACE
42 cp $TOP/sqlite3.1 $TMPSPACE 53 cp $TOP/sqlite3.pc.in $TMPSPACE
43 cp $TOP/sqlite3.pc.in $TMPSPACE 54 cp $TOP/src/shell.c $TMPSPACE
44 cp $TOP/src/shell.c $TMPSPACE 55 cp $TOP/src/sqlite3.rc $TMPSPACE
56 cp $TOP/tool/Replace.cs $TMPSPACE
45 57
46 cat $TMPSPACE/configure.ac | 58 cat $TMPSPACE/configure.ac |
47 sed "s/--SQLITE-VERSION--/$VERSION/" > $TMPSPACE/tmp 59 sed "s/--SQLITE-VERSION--/$VERSION/" > $TMPSPACE/tmp
48 mv $TMPSPACE/tmp $TMPSPACE/configure.ac 60 mv $TMPSPACE/tmp $TMPSPACE/configure.ac
49 61
50 cd $TMPSPACE 62 cd $TMPSPACE
51 autoreconf -i 63 autoreconf -i
52 #libtoolize 64 #libtoolize
53 #aclocal 65 #aclocal
54 #autoconf 66 #autoconf
(...skipping 11 matching lines...) Expand all
66 sed "s/AC_INIT(\[sqlite\], .*)/AC_INIT([sqlite], [$VERSION])/" > tmp 78 sed "s/AC_INIT(\[sqlite\], .*)/AC_INIT([sqlite], [$VERSION])/" > tmp
67 mv tmp tea/configure.ac 79 mv tmp tea/configure.ac
68 80
69 cd tea 81 cd tea
70 autoconf 82 autoconf
71 rm -rf autom4te.cache 83 rm -rf autom4te.cache
72 84
73 cd ../ 85 cd ../
74 ./configure && make dist 86 ./configure && make dist
75 tar -xzf sqlite-$VERSION.tar.gz 87 tar -xzf sqlite-$VERSION.tar.gz
76 mv sqlite-$VERSION sqlite-autoconf-$ARTIFACT 88 mv sqlite-$VERSION $TARBALLNAME
77 tar -czf sqlite-autoconf-$ARTIFACT.tar.gz sqlite-autoconf-$ARTIFACT 89 tar -czf $TARBALLNAME.tar.gz $TARBALLNAME
78 mv sqlite-autoconf-$ARTIFACT.tar.gz .. 90 mv $TARBALLNAME.tar.gz ..
91 cd ..
92 ls -l $TARBALLNAME.tar.gz
OLDNEW
« no previous file with comments | « third_party/sqlite/src/tool/max-limits.c ('k') | third_party/sqlite/src/tool/mkkeywordhash.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698