download.tcl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #
  2. # Run this TCL script to generate HTML for the download.html file.
  3. #
  4. set rcsid {$Id: download.tcl,v 1.5 2002/03/30 14:15:52 drh Exp $}
  5. puts {<html>
  6. <head><title>SQLite Download Page</title></head>
  7. <body bgcolor=white>
  8. <h1 align=center>SQLite Download Page</h1>}
  9. #<p align=center>}
  10. #puts "This page was last modified on [lrange $rcsid 3 4] UTC<br>"
  11. #set vers [lindex $argv 0]
  12. #puts "The latest SQLite version is <b>$vers</b>"
  13. #puts " created on [exec cat last_change] UTC"
  14. #puts {</p>}
  15. puts {<h2>Precompiled Binaries For Linux</h2>}
  16. proc Product {file desc} {
  17. if {![file exists $file]} return
  18. set size [file size $file]
  19. puts [subst {
  20. <table cellpadding="15">
  21. <tr>
  22. <td width="200" align="right" valign="top">
  23. <a href="$file">$file</a><br>($size bytes)
  24. </td>
  25. <td valign="top">[string trim $desc]</td>
  26. </tr>
  27. </table>}]
  28. }
  29. Product sqlite.bin.gz {
  30. A command-line program for accessing and modifing SQLite databases.
  31. See <a href="sqlite.html">the documentation</a> for additional information.
  32. }
  33. Product tclsqlite.so.gz {
  34. Bindings for TCL. You can import this shared library into either
  35. tclsh or wish to get SQLite database access from Tcl/Tk.
  36. See <a href="tclsqlite.html">the documentation</a> for details.
  37. }
  38. Product sqlite.so.gz {
  39. A precompiled shared-library for Linux. This is the same as
  40. <b>tclsqlite.so.gz</b> but without the TCL bindings.
  41. }
  42. foreach name [lsort -dict [glob -nocomplain sqlite-*.i386.rpm]] {
  43. if {[regexp -- -devel- $name]} {
  44. Product $name {
  45. RPM containing documentation, header files, and static library.
  46. }
  47. } else {
  48. Product $name {
  49. RPM containing shared libraries and the <b>sqlite</b> command-line
  50. program.
  51. }
  52. }
  53. }
  54. puts {<h2>Precompiled Binaries For Windows</h2>}
  55. Product sqlite.zip {
  56. A command-line program for accessing and modifing SQLite databases.
  57. See <a href="sqlite.html">the documentation</a> for additional information.
  58. }
  59. Product tclsqlite.zip {
  60. Bindings for TCL. You can import this shared library into either
  61. tclsh or wish to get SQLite database access from Tcl/Tk.
  62. See <a href="tclsqlite.html">the documentation</a> for details.
  63. }
  64. Product sqlitedll.zip {
  65. This is a DLL of the SQLite library without the TCL bindings.
  66. The only external dependency is MSVCRT.DLL.
  67. }
  68. puts {<h2>Source Code</h2>}
  69. Product {sqlite_source.zip} {
  70. This ZIP archive contains pure C source code for the SQLite library.
  71. Unlike the tarballs below, all of the preprocessing has already been
  72. done on these C source code, so you can just hand the files directly to
  73. your favorite C compiler. This file is provided as a service to
  74. MS-Windows users who lack the build support infrastructure of Unix.
  75. }
  76. foreach name [lsort -dict [glob -nocomplain sqlite-*.src.rpm]] {
  77. Product $name "RPM containing complete source code"
  78. }
  79. foreach name [lsort -dict -decreasing [glob -nocomplain sqlite-*.tar.gz]] {
  80. regexp {sqlite-(.*)\.tar\.gz} $name match vers
  81. Product $name "
  82. Version $vers of the source tree including all documentation.
  83. "
  84. }
  85. puts {
  86. <p><hr /></p>
  87. <p>
  88. <a href="index.html"><img src="/goback.jpg" border=0 />
  89. Back to the SQLite home page</a>
  90. </p>
  91. </body></html>}