diff options
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/www/download.tcl')
-rw-r--r-- | libraries/sqlite/unix/sqlite-3.5.1/www/download.tcl | 236 |
1 files changed, 236 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/www/download.tcl b/libraries/sqlite/unix/sqlite-3.5.1/www/download.tcl new file mode 100644 index 0000000..b47cd5b --- /dev/null +++ b/libraries/sqlite/unix/sqlite-3.5.1/www/download.tcl | |||
@@ -0,0 +1,236 @@ | |||
1 | # | ||
2 | # Run this TCL script to generate HTML for the download.html file. | ||
3 | # | ||
4 | set rcsid {$Id: download.tcl,v 1.27 2007/05/08 18:30:36 drh Exp $} | ||
5 | source common.tcl | ||
6 | header {SQLite Download Page} | ||
7 | |||
8 | puts { | ||
9 | <h2>SQLite Download Page</h1> | ||
10 | <table width="100%" cellpadding="5"> | ||
11 | } | ||
12 | |||
13 | proc Product {pattern desc} { | ||
14 | regsub {V[23]} $pattern {*} p3 | ||
15 | regsub V2 $pattern {(2[0-9a-z._]+)} pattern | ||
16 | regsub V3 $pattern {(3[0-9a-z._]+)} pattern | ||
17 | set p2 [string map {* .*} $pattern] | ||
18 | set flist [glob -nocomplain $p3] | ||
19 | foreach file [lsort -dict $flist] { | ||
20 | if {![regexp ^$p2\$ $file all version]} continue | ||
21 | regsub -all _ $version . version | ||
22 | set size [file size $file] | ||
23 | set units bytes | ||
24 | if {$size>1024*1024} { | ||
25 | set size [format %.2f [expr {$size/(1024.0*1024.0)}]] | ||
26 | set units MiB | ||
27 | } elseif {$size>1024} { | ||
28 | set size [format %.2f [expr {$size/(1024.0)}]] | ||
29 | set units KiB | ||
30 | } | ||
31 | puts "<tr><td width=\"10\"></td>" | ||
32 | puts "<td valign=\"top\" align=\"right\">" | ||
33 | puts "<a href=\"$file\">$file</a><br>($size $units)</td>" | ||
34 | puts "<td width=\"5\"></td>" | ||
35 | regsub -all VERSION $desc $version d2 | ||
36 | puts "<td valign=\"top\">[string trim $d2]</td></tr>" | ||
37 | } | ||
38 | } | ||
39 | cd doc | ||
40 | |||
41 | proc Heading {title} { | ||
42 | puts "<tr><td colspan=4><big><b>$title</b></big></td></tr>" | ||
43 | } | ||
44 | |||
45 | Heading {Precompiled Binaries for Linux} | ||
46 | |||
47 | Product sqlite3-V3.bin.gz { | ||
48 | A command-line program for accessing and modifying | ||
49 | SQLite version 3.* databases. | ||
50 | See <a href="sqlite.html">the documentation</a> for additional information. | ||
51 | } | ||
52 | |||
53 | Product sqlite-V3.bin.gz { | ||
54 | A command-line program for accessing and modifying | ||
55 | SQLite databases. | ||
56 | See <a href="sqlite.html">the documentation</a> for additional information. | ||
57 | } | ||
58 | |||
59 | Product tclsqlite-V3.so.gz { | ||
60 | Bindings for <a href="http://www.tcl.tk/">Tcl/Tk</a>. | ||
61 | You can import this shared library into either | ||
62 | tclsh or wish to get SQLite database access from Tcl/Tk. | ||
63 | See <a href="tclsqlite.html">the documentation</a> for details. | ||
64 | } | ||
65 | |||
66 | Product sqlite-V3.so.gz { | ||
67 | A precompiled shared-library for Linux without the TCL bindings. | ||
68 | } | ||
69 | |||
70 | Product fts1-V3.so.gz { | ||
71 | A precompiled | ||
72 | <a href="http://www.sqlite.org/cvstrac/wiki?p=FtsOne">FTS1 Module</a> | ||
73 | for Linux. | ||
74 | } | ||
75 | |||
76 | Product fts2-V3.so.gz { | ||
77 | A precompiled | ||
78 | <a href="http://www.sqlite.org/cvstrac/wiki?p=FtsTwo">FTS2 Module</a> | ||
79 | for Linux. | ||
80 | } | ||
81 | |||
82 | Product sqlite-devel-V3.i386.rpm { | ||
83 | RPM containing documentation, header files, and static library for | ||
84 | SQLite version VERSION. | ||
85 | } | ||
86 | Product sqlite-V3-1.i386.rpm { | ||
87 | RPM containing shared libraries and the <b>sqlite</b> command-line | ||
88 | program for SQLite version VERSION. | ||
89 | } | ||
90 | |||
91 | Product sqlite*_analyzer-V3.bin.gz { | ||
92 | An analysis program for database files compatible with SQLite | ||
93 | version VERSION and later. | ||
94 | } | ||
95 | |||
96 | Heading {Precompiled Binaries For Windows} | ||
97 | |||
98 | Product sqlite-V3.zip { | ||
99 | A command-line program for accessing and modifing SQLite databases. | ||
100 | See <a href="sqlite.html">the documentation</a> for additional information. | ||
101 | } | ||
102 | Product tclsqlite-V3.zip { | ||
103 | Bindings for <a href="http://www.tcl.tk/">Tcl/Tk</a>. | ||
104 | You can import this shared library into either | ||
105 | tclsh or wish to get SQLite database access from Tcl/Tk. | ||
106 | See <a href="tclsqlite.html">the documentation</a> for details. | ||
107 | } | ||
108 | Product sqlitedll-V3.zip { | ||
109 | This is a DLL of the SQLite library without the TCL bindings. | ||
110 | The only external dependency is MSVCRT.DLL. | ||
111 | } | ||
112 | |||
113 | Product fts1dll-V3.zip { | ||
114 | A precompiled | ||
115 | <a href="http://www.sqlite.org/cvstrac/wiki?p=FtsOne">FTS1 Module</a> | ||
116 | for win32. | ||
117 | } | ||
118 | |||
119 | Product fts2dll-V3.zip { | ||
120 | A precompiled | ||
121 | <a href="http://www.sqlite.org/cvstrac/wiki?p=FtsTwo">FTS2 Module</a> | ||
122 | for win32. | ||
123 | } | ||
124 | |||
125 | Product sqlite*_analyzer-V3.zip { | ||
126 | An analysis program for database files compatible with SQLite version | ||
127 | VERSION and later. | ||
128 | } | ||
129 | |||
130 | |||
131 | Heading {Source Code} | ||
132 | |||
133 | Product {sqlite-V3.tar.gz} { | ||
134 | A tarball of the complete source tree for SQLite version VERSION | ||
135 | including all of the documentation. | ||
136 | } | ||
137 | |||
138 | Product {sqlite-source-V3.zip} { | ||
139 | This ZIP archive contains preprocessed C code for the SQLite library as | ||
140 | individual source files. | ||
141 | Unlike the tarballs below, all of the preprocessing and automatic | ||
142 | code generation has already been done on these C code files, so they | ||
143 | can be converted to object code directly with any ordinary C compiler. | ||
144 | } | ||
145 | |||
146 | Product {sqlite-amalgamation-V3.zip} { | ||
147 | This ZIP archive contains all preprocessed C code combined into a | ||
148 | single source file (the | ||
149 | <a href="http://www.sqlite.org/cvstrac/wiki?p=TheAmalgamation"> | ||
150 | amalgamation</a>). | ||
151 | } | ||
152 | |||
153 | Product {sqlite-V3-tea.tar.gz} { | ||
154 | A tarball of proprocessed source code together with a | ||
155 | <a href="http://www.tcl.tk/doc/tea/">Tcl Extension Architecture (TEA)</a> | ||
156 | compatible configure script and makefile. | ||
157 | } | ||
158 | |||
159 | Product {sqlite-V3.src.rpm} { | ||
160 | An RPM containing complete source code for SQLite version VERSION | ||
161 | } | ||
162 | |||
163 | Heading {Cross-Platform Binaries} | ||
164 | |||
165 | Product {sqlite-V3.kit} { | ||
166 | A <a href="http://www.equi4.com/starkit.html">starkit</a> containing | ||
167 | precompiled SQLite binaries and Tcl bindings for Linux-x86, Windows, | ||
168 | and Mac OS-X ppc and x86. | ||
169 | } | ||
170 | |||
171 | Heading {Historical Binaries And Source Code} | ||
172 | |||
173 | Product sqlite-V2.bin.gz { | ||
174 | A command-line program for accessing and modifying | ||
175 | SQLite version 2.* databases on Linux-x86. | ||
176 | } | ||
177 | Product sqlite-V2.zip { | ||
178 | A command-line program for accessing and modifying | ||
179 | SQLite version 2.* databases on win32. | ||
180 | } | ||
181 | |||
182 | Product sqlite*_analyzer-V2.bin.gz { | ||
183 | An analysis program for version 2.* database files on Linux-x86 | ||
184 | } | ||
185 | Product sqlite*_analyzer-V2.zip { | ||
186 | An analysis program for version 2.* database files on win32. | ||
187 | } | ||
188 | Product {sqlite-source-V2.zip} { | ||
189 | This ZIP archive contains C source code for the SQLite library | ||
190 | version VERSION. | ||
191 | } | ||
192 | |||
193 | |||
194 | |||
195 | |||
196 | puts { | ||
197 | </table> | ||
198 | |||
199 | <a name="cvs"> | ||
200 | <h3>Direct Access To The Sources Via Anonymous CVS</h3> | ||
201 | |||
202 | <p> | ||
203 | All SQLite source code is maintained in a | ||
204 | <a href="http://www.cvshome.org/">CVS</a> repository that is | ||
205 | available for read-only access by anyone. You can | ||
206 | interactively view the | ||
207 | repository contents and download individual files | ||
208 | by visiting | ||
209 | <a href="http://www.sqlite.org/cvstrac/dir?d=sqlite"> | ||
210 | http://www.sqlite.org/cvstrac/dir?d=sqlite</a>. | ||
211 | To access the repository directly, use the following | ||
212 | commands: | ||
213 | </p> | ||
214 | |||
215 | <blockquote><pre> | ||
216 | cvs -d :pserver:anonymous@www.sqlite.org:/sqlite login | ||
217 | cvs -d :pserver:anonymous@www.sqlite.org:/sqlite checkout sqlite | ||
218 | </pre></blockquote> | ||
219 | |||
220 | <p> | ||
221 | When the first command prompts you for a password, enter "anonymous". | ||
222 | </p> | ||
223 | |||
224 | <p> | ||
225 | To access the SQLite version 2.8 sources, begin by getting the 3.0 | ||
226 | tree as described above. Then update to the "version_2" branch | ||
227 | as follows: | ||
228 | </p> | ||
229 | |||
230 | <blockquote><pre> | ||
231 | cvs update -r version_2 | ||
232 | </pre></blockquote> | ||
233 | |||
234 | } | ||
235 | |||
236 | footer $rcsid | ||