Fossil SCM

Merge updates from trunk.

mistachkin 2016-10-24 21:54 UTC experimental merge
Commit 1375911c530825c68c256a94e38bac66911469e7
+1 -1
--- VERSION
+++ VERSION
@@ -1,1 +1,1 @@
1
-1.36
1
+1.37
22
--- VERSION
+++ VERSION
@@ -1,1 +1,1 @@
1 1.36
2
--- VERSION
+++ VERSION
@@ -1,1 +1,1 @@
1 1.37
2
+2 -1
--- src/tkt.c
+++ src/tkt.c
@@ -546,12 +546,13 @@
546546
Blob *pTicket, /* The text of the ticket change record */
547547
const char *zTktId, /* The ticket to which this change is applied */
548548
int needMod /* True if moderation is needed */
549549
){
550550
int result;
551
+ int rid;
551552
manifest_crosslink_begin();
552
- int rid = content_put_ex(pTicket, 0, 0, 0, needMod);
553
+ rid = content_put_ex(pTicket, 0, 0, 0, needMod);
553554
if( rid==0 ){
554555
fossil_fatal("trouble committing ticket: %s", g.zErrMsg);
555556
}
556557
if( needMod ){
557558
moderation_table_create();
558559
--- src/tkt.c
+++ src/tkt.c
@@ -546,12 +546,13 @@
546 Blob *pTicket, /* The text of the ticket change record */
547 const char *zTktId, /* The ticket to which this change is applied */
548 int needMod /* True if moderation is needed */
549 ){
550 int result;
 
551 manifest_crosslink_begin();
552 int rid = content_put_ex(pTicket, 0, 0, 0, needMod);
553 if( rid==0 ){
554 fossil_fatal("trouble committing ticket: %s", g.zErrMsg);
555 }
556 if( needMod ){
557 moderation_table_create();
558
--- src/tkt.c
+++ src/tkt.c
@@ -546,12 +546,13 @@
546 Blob *pTicket, /* The text of the ticket change record */
547 const char *zTktId, /* The ticket to which this change is applied */
548 int needMod /* True if moderation is needed */
549 ){
550 int result;
551 int rid;
552 manifest_crosslink_begin();
553 rid = content_put_ex(pTicket, 0, 0, 0, needMod);
554 if( rid==0 ){
555 fossil_fatal("trouble committing ticket: %s", g.zErrMsg);
556 }
557 if( needMod ){
558 moderation_table_create();
559
+14 -1
--- www/changes.wiki
+++ www/changes.wiki
@@ -1,8 +1,14 @@
11
<title>Change Log</title>
22
3
-<h2>Changes for Version 1.36 (2016-00-00)</h2>
3
+<a name='v1_37'></a>
4
+<h2>Changes for Version 1.37 (2017-XX-YY)</h2>
5
+
6
+ * Fix a C99-ism that prevents the 1.36 release from building with MSVC.
7
+
8
+<a name='v1_36'></a>
9
+<h2>Changes for Version 1.36 (2016-10-24)</h2>
410
511
* Add support for [./unvers.wiki|unversioned content],
612
the [/help?cmd=unversioned|fossil unversioned] command and the
713
[/help?cmd=/uv|/uv] and [/uvlist] web pages.
814
* The [/uv/download.html|download page] is moved into
@@ -28,10 +34,11 @@
2834
able to pull from their parent but not push.
2935
* Added the -nocomplain option to the TH1 "query" command.
3036
* Added support for the chng=GLOBLIST query parameter on the
3137
[/help?cmd=/timeline|/timeline] webpage.
3238
39
+<a name='v1_35'></a>
3340
<h2>Changes for Version 1.35 (2016-06-14)</h2>
3441
3542
* Enable symlinks by default on all non-Windows platforms.
3643
* Enhance the [/md_rules|Markdown formatting] so that hyperlinks that begin
3744
with "/" are relative to the root of the Fossil repository.
@@ -71,10 +78,11 @@
7178
names in place of getpass() to read passwords and passphrases
7279
* Option --baseurl now works on Windows.
7380
* Numerious documentation improvements.
7481
* Update the built-in SQLite to version 3.13.0.
7582
83
+<a name='v1_34'></a>
7684
<h2>Changes for Version 1.34 (2015-11-02)</h2>
7785
7886
* Make the [/help?cmd=clean|fossil clean] command undoable for files less
7987
than 10MiB.
8088
* Update internal Unicode character tables, used in regular expression
@@ -106,10 +114,11 @@
106114
* Change the mimetype for ".n" and ".man" files to text/plain.
107115
* Display improvements in the [/help?cmd=bisect|fossil bisect chart] command.
108116
* Updated the built-in SQLite to version 3.9.1 and activated JSON1 and FTS5
109117
support (both currently unused within Fossil).
110118
119
+<a name='v1_33'></a>
111120
<h2>Changes for Version 1.33 (2015-05-23)</h2>
112121
* Improved fork detection on [/help?cmd=update|fossil update],
113122
[/help?cmd=status|fossil status] and related commands.
114123
* Change the default skin to what used to be called "San Francisco Modern".
115124
* Add the [/repo-tabsize] web page
@@ -155,10 +164,11 @@
155164
field for direct entry of the user name to each applicable report.
156165
* Create parent directories of [/help?cmd=settings|empty-dirs] if they don't
157166
already exist.
158167
* Inhibit timeline links to wiki pages that have been deleted.
159168
169
+<a name='v1_33'></a>
160170
<h2>Changes for Version 1.32 (2015-03-14)</h2>
161171
* When creating a new repository using [/help?cmd=init|fossil init], ensure
162172
that the new repository is fully compatible with historical versions of
163173
Fossil by having a valid manifest as RID 1.
164174
* Anti-aliased rendering of arrowheads on timeline graphs.
@@ -171,10 +181,11 @@
171181
* Enhance the "ln=" query parameter on artifact displays to accept multiple
172182
ranges, separate by spaces (or "+" when URL-encoded).
173183
* Added [/help?cmd=forget|fossil forget] as an alias for
174184
[/help?cmd=rm|fossil rm].
175185
186
+<a name='v1_31'></a>
176187
<h2>Changes For Version 1.31 (2015-02-23)</h2>
177188
* Change the auxiliary schema by adding columns MLINK.ISAUX and MLINK.PMID
178189
columns to the schema, to support better drawing of file change graphs.
179190
A [/help?cmd=rebuild|fossil rebuild] is recommended but is not required.
180191
so that the new graph drawing logic can work effectively.
@@ -222,10 +233,11 @@
222233
* Allow the user of Common Table Expressions in the SQL that defaults
223234
ticket reports.
224235
* Break out the components (css, footer, and header) for the
225236
various built-in skins into separate files in the source tree.
226237
238
+<a name='v1_30'></a>
227239
<h2>Changes For Version 1.30 (2015-01-19)</h2>
228240
* Added the [/help?cmd=bundle|fossil bundle] command.
229241
* Added the [/help?cmd=purge|fossil purge] command.
230242
* Added the [/help?cmd=publish|fossil publish] command.
231243
* Added the [/help?cmd=unpublished|fossil unpublished] command.
@@ -292,10 +304,11 @@
292304
the correctness of printf-style formatting strings.
293305
* Fix CVE-2014-3566, also known as the POODLE SSL 3.0 vulnerability.
294306
* Numerous documentation fixes and improvements.
295307
* Other obscure and minor bug fixes - see the timeline for details.
296308
309
+<a name='v1_29'></a>
297310
<h2>Changes For Version 1.29 (2014-06-12)</h2>
298311
* Add the ability to display content, diffs and annotations for UTF16
299312
text files in the web interface.
300313
* Add the "SaveAs..." and "Invert" buttons
301314
to the graphical diff display that results
302315
--- www/changes.wiki
+++ www/changes.wiki
@@ -1,8 +1,14 @@
1 <title>Change Log</title>
2
3 <h2>Changes for Version 1.36 (2016-00-00)</h2>
 
 
 
 
 
 
4
5 * Add support for [./unvers.wiki|unversioned content],
6 the [/help?cmd=unversioned|fossil unversioned] command and the
7 [/help?cmd=/uv|/uv] and [/uvlist] web pages.
8 * The [/uv/download.html|download page] is moved into
@@ -28,10 +34,11 @@
28 able to pull from their parent but not push.
29 * Added the -nocomplain option to the TH1 "query" command.
30 * Added support for the chng=GLOBLIST query parameter on the
31 [/help?cmd=/timeline|/timeline] webpage.
32
 
33 <h2>Changes for Version 1.35 (2016-06-14)</h2>
34
35 * Enable symlinks by default on all non-Windows platforms.
36 * Enhance the [/md_rules|Markdown formatting] so that hyperlinks that begin
37 with "/" are relative to the root of the Fossil repository.
@@ -71,10 +78,11 @@
71 names in place of getpass() to read passwords and passphrases
72 * Option --baseurl now works on Windows.
73 * Numerious documentation improvements.
74 * Update the built-in SQLite to version 3.13.0.
75
 
76 <h2>Changes for Version 1.34 (2015-11-02)</h2>
77
78 * Make the [/help?cmd=clean|fossil clean] command undoable for files less
79 than 10MiB.
80 * Update internal Unicode character tables, used in regular expression
@@ -106,10 +114,11 @@
106 * Change the mimetype for ".n" and ".man" files to text/plain.
107 * Display improvements in the [/help?cmd=bisect|fossil bisect chart] command.
108 * Updated the built-in SQLite to version 3.9.1 and activated JSON1 and FTS5
109 support (both currently unused within Fossil).
110
 
111 <h2>Changes for Version 1.33 (2015-05-23)</h2>
112 * Improved fork detection on [/help?cmd=update|fossil update],
113 [/help?cmd=status|fossil status] and related commands.
114 * Change the default skin to what used to be called "San Francisco Modern".
115 * Add the [/repo-tabsize] web page
@@ -155,10 +164,11 @@
155 field for direct entry of the user name to each applicable report.
156 * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't
157 already exist.
158 * Inhibit timeline links to wiki pages that have been deleted.
159
 
160 <h2>Changes for Version 1.32 (2015-03-14)</h2>
161 * When creating a new repository using [/help?cmd=init|fossil init], ensure
162 that the new repository is fully compatible with historical versions of
163 Fossil by having a valid manifest as RID 1.
164 * Anti-aliased rendering of arrowheads on timeline graphs.
@@ -171,10 +181,11 @@
171 * Enhance the "ln=" query parameter on artifact displays to accept multiple
172 ranges, separate by spaces (or "+" when URL-encoded).
173 * Added [/help?cmd=forget|fossil forget] as an alias for
174 [/help?cmd=rm|fossil rm].
175
 
176 <h2>Changes For Version 1.31 (2015-02-23)</h2>
177 * Change the auxiliary schema by adding columns MLINK.ISAUX and MLINK.PMID
178 columns to the schema, to support better drawing of file change graphs.
179 A [/help?cmd=rebuild|fossil rebuild] is recommended but is not required.
180 so that the new graph drawing logic can work effectively.
@@ -222,10 +233,11 @@
222 * Allow the user of Common Table Expressions in the SQL that defaults
223 ticket reports.
224 * Break out the components (css, footer, and header) for the
225 various built-in skins into separate files in the source tree.
226
 
227 <h2>Changes For Version 1.30 (2015-01-19)</h2>
228 * Added the [/help?cmd=bundle|fossil bundle] command.
229 * Added the [/help?cmd=purge|fossil purge] command.
230 * Added the [/help?cmd=publish|fossil publish] command.
231 * Added the [/help?cmd=unpublished|fossil unpublished] command.
@@ -292,10 +304,11 @@
292 the correctness of printf-style formatting strings.
293 * Fix CVE-2014-3566, also known as the POODLE SSL 3.0 vulnerability.
294 * Numerous documentation fixes and improvements.
295 * Other obscure and minor bug fixes - see the timeline for details.
296
 
297 <h2>Changes For Version 1.29 (2014-06-12)</h2>
298 * Add the ability to display content, diffs and annotations for UTF16
299 text files in the web interface.
300 * Add the "SaveAs..." and "Invert" buttons
301 to the graphical diff display that results
302
--- www/changes.wiki
+++ www/changes.wiki
@@ -1,8 +1,14 @@
1 <title>Change Log</title>
2
3 <a name='v1_37'></a>
4 <h2>Changes for Version 1.37 (2017-XX-YY)</h2>
5
6 * Fix a C99-ism that prevents the 1.36 release from building with MSVC.
7
8 <a name='v1_36'></a>
9 <h2>Changes for Version 1.36 (2016-10-24)</h2>
10
11 * Add support for [./unvers.wiki|unversioned content],
12 the [/help?cmd=unversioned|fossil unversioned] command and the
13 [/help?cmd=/uv|/uv] and [/uvlist] web pages.
14 * The [/uv/download.html|download page] is moved into
@@ -28,10 +34,11 @@
34 able to pull from their parent but not push.
35 * Added the -nocomplain option to the TH1 "query" command.
36 * Added support for the chng=GLOBLIST query parameter on the
37 [/help?cmd=/timeline|/timeline] webpage.
38
39 <a name='v1_35'></a>
40 <h2>Changes for Version 1.35 (2016-06-14)</h2>
41
42 * Enable symlinks by default on all non-Windows platforms.
43 * Enhance the [/md_rules|Markdown formatting] so that hyperlinks that begin
44 with "/" are relative to the root of the Fossil repository.
@@ -71,10 +78,11 @@
78 names in place of getpass() to read passwords and passphrases
79 * Option --baseurl now works on Windows.
80 * Numerious documentation improvements.
81 * Update the built-in SQLite to version 3.13.0.
82
83 <a name='v1_34'></a>
84 <h2>Changes for Version 1.34 (2015-11-02)</h2>
85
86 * Make the [/help?cmd=clean|fossil clean] command undoable for files less
87 than 10MiB.
88 * Update internal Unicode character tables, used in regular expression
@@ -106,10 +114,11 @@
114 * Change the mimetype for ".n" and ".man" files to text/plain.
115 * Display improvements in the [/help?cmd=bisect|fossil bisect chart] command.
116 * Updated the built-in SQLite to version 3.9.1 and activated JSON1 and FTS5
117 support (both currently unused within Fossil).
118
119 <a name='v1_33'></a>
120 <h2>Changes for Version 1.33 (2015-05-23)</h2>
121 * Improved fork detection on [/help?cmd=update|fossil update],
122 [/help?cmd=status|fossil status] and related commands.
123 * Change the default skin to what used to be called "San Francisco Modern".
124 * Add the [/repo-tabsize] web page
@@ -155,10 +164,11 @@
164 field for direct entry of the user name to each applicable report.
165 * Create parent directories of [/help?cmd=settings|empty-dirs] if they don't
166 already exist.
167 * Inhibit timeline links to wiki pages that have been deleted.
168
169 <a name='v1_33'></a>
170 <h2>Changes for Version 1.32 (2015-03-14)</h2>
171 * When creating a new repository using [/help?cmd=init|fossil init], ensure
172 that the new repository is fully compatible with historical versions of
173 Fossil by having a valid manifest as RID 1.
174 * Anti-aliased rendering of arrowheads on timeline graphs.
@@ -171,10 +181,11 @@
181 * Enhance the "ln=" query parameter on artifact displays to accept multiple
182 ranges, separate by spaces (or "+" when URL-encoded).
183 * Added [/help?cmd=forget|fossil forget] as an alias for
184 [/help?cmd=rm|fossil rm].
185
186 <a name='v1_31'></a>
187 <h2>Changes For Version 1.31 (2015-02-23)</h2>
188 * Change the auxiliary schema by adding columns MLINK.ISAUX and MLINK.PMID
189 columns to the schema, to support better drawing of file change graphs.
190 A [/help?cmd=rebuild|fossil rebuild] is recommended but is not required.
191 so that the new graph drawing logic can work effectively.
@@ -222,10 +233,11 @@
233 * Allow the user of Common Table Expressions in the SQL that defaults
234 ticket reports.
235 * Break out the components (css, footer, and header) for the
236 various built-in skins into separate files in the source tree.
237
238 <a name='v1_30'></a>
239 <h2>Changes For Version 1.30 (2015-01-19)</h2>
240 * Added the [/help?cmd=bundle|fossil bundle] command.
241 * Added the [/help?cmd=purge|fossil purge] command.
242 * Added the [/help?cmd=publish|fossil publish] command.
243 * Added the [/help?cmd=unpublished|fossil unpublished] command.
@@ -292,10 +304,11 @@
304 the correctness of printf-style formatting strings.
305 * Fix CVE-2014-3566, also known as the POODLE SSL 3.0 vulnerability.
306 * Numerous documentation fixes and improvements.
307 * Other obscure and minor bug fixes - see the timeline for details.
308
309 <a name='v1_29'></a>
310 <h2>Changes For Version 1.29 (2014-06-12)</h2>
311 * Add the ability to display content, diffs and annotations for UTF16
312 text files in the web interface.
313 * Add the "SaveAs..." and "Invert" buttons
314 to the graphical diff display that results
315
+48 -59
--- www/mkdownload.tcl
+++ www/mkdownload.tcl
@@ -1,41 +1,18 @@
11
#!/usr/bin/tclsh
22
#
3
-# Run this script to build the "download.html" page. Also generate
4
-# the fossil_download_checksums.html page.
3
+# Run this script to build andn install the "download.html" page of
4
+# unversioned comment.
5
+#
6
+# Also generate the fossil_download_checksums.html page.
57
#
68
#
79
set out [open download.html w]
810
fconfigure $out -encoding utf-8 -translation lf
911
puts $out \
1012
{<!DOCTYPE html>
11
-<html>
12
- <head>
13
- <base href="https://www.fossil-scm.org/download.html" />
14
- <title>Fossil: Download</title>
15
- <link rel="alternate" type="application/rss+xml" title="RSS Feed"
16
- href="/fossil/timeline.rss" />
17
- <link rel="stylesheet" href="/fossil/style.css?default" type="text/css"
18
- media="screen" />
19
- </head>
20
-
21
- <body>
22
- <div class="header">
23
- <div class="title"><h1>Fossil</h1>Download</div>
24
- </div>
25
- <div class="mainmenu">
26
-<a href='/fossil/doc/trunk/www/index.wiki'>Home</a>
27
-<a href='/fossil/timeline?y=ci'>Timeline</a>
28
-<a href='/fossil/dir?ci=tip'>Code</a>
29
-<a href='/fossil/doc/trunk/www/permutedindex.html'>Docs</a>
30
-<a href='/fossil/brlist'>Branches</a>
31
-<a href='/fossil/ticket'>Tickets</a>
32
-<a href='/fossil/wiki'>Wiki</a>
33
-<a href='/download.html' class='active'>Download</a>
34
-</div>
35
-<div class="content">
36
-<p>
13
+<div class='fossil-doc' data-title='Download Page'>
3714
3815
<center><font size=4>}
3916
puts $out \
4017
"<b>To install Fossil &rarr;</b> download the stand-alone executable"
4118
puts $out \
@@ -45,46 +22,57 @@
4522
<a href="http://download.opensuse.org/repositories/home:/rmax:/fossil/">
4623
here.</a>
4724
Cryptographic checksums for download files are
4825
<a href="http://www.hwaci.com/fossil_download_checksums.html">here</a>.
4926
</small></p>
50
-</center>
51
-
5227
<table cellpadding="10">
5328
}
5429
55
-# Find all all unique timestamps.
30
+# Find all unique timestamps.
5631
#
57
-foreach file [glob -nocomplain download/fossil-*.zip] {
58
- if {[regexp -- {-(\d\.\d+).zip$} $file all version]} {
32
+set in [open {|fossil uv list} rb]
33
+while {[gets $in line]>0} {
34
+ set fn [lindex $line 5]
35
+ set filesize($fn) [lindex $line 3]
36
+ if {[regexp -- {-(\d\.\d+)\.(tar\.gz|zip)$} $fn all version]} {
37
+ set filehash($fn) [lindex $line 1]
5938
set avers($version) 1
6039
}
6140
}
41
+close $in
42
+
43
+set vdate(1.36) 2016-10-24
44
+set vdate(1.35) 2016-06-14
45
+set vdate(1.34) 2016-11-02
6246
6347
# Do all versions from newest to oldest
6448
#
6549
foreach vers [lsort -decr -real [array names avers]] {
66
- set hr "/fossil/timeline?c=version-$vers;y=ci"
50
+ # set hr "../timeline?c=version-$vers;y=ci"
51
+ set v2 v[string map {. _} $vers]
52
+ set hr "../doc/trunk/www/changes.wiki#$v2"
6753
puts $out "<tr><td colspan=6 align=left><hr>"
68
- puts $out "<center><b><a href=\"$hr\">Version $vers</a></b></center>"
54
+ puts $out "<center><b><a href=\"$hr\">Version $vers</a>"
55
+ if {[info exists vdate($vers)]} {
56
+ set hr2 "../timeline?c=version-$vers&amp;y=ci"
57
+ puts $out " (<a href='$hr2'>$vdate($vers)</a>)"
58
+ }
59
+ puts $out "</b></center>"
6960
puts $out "</td></tr>"
7061
puts $out "<tr>"
7162
7263
foreach {prefix img desc} {
7364
fossil-linux-x86 linux.gif {Linux 3.x x86}
74
- fossil-macosx-x86 mac.gif {Mac 10.x x86}
65
+ fossil-macosx mac.gif {Mac 10.x x86}
7566
fossil-openbsd-x86 openbsd.gif {OpenBSD 5.x x86}
7667
fossil-w32 win32.gif {Windows}
7768
fossil-src src.gif {Source Tarball}
7869
} {
79
- set basename download/$prefix-$vers
80
- set filename $basename.tar.gz
81
- if {![file exists $basename.tar.gz]} {
82
- set filename $basename.zip
83
- }
84
- if {[file exists $filename]} {
85
- set size [file size $filename]
70
+ set glob download/$prefix*-$vers*
71
+ set filename [array names filesize $glob]
72
+ if {[info exists filesize($filename)]} {
73
+ set size [set filesize($filename)]
8674
set units bytes
8775
if {$size>1024*1024} {
8876
set size [format %.2f [expr {$size/(1024.0*1024.0)}]]
8977
set units MiB
9078
} elseif {$size>1024} {
@@ -97,26 +85,23 @@
9785
} else {
9886
puts $out "<td>&nbsp;</td>"
9987
}
10088
}
10189
puts $out "</tr>"
102
- if {[file exists download/releasenotes-$vers.html]} {
103
- puts $out "<tr><td colspan=6 align=left>"
104
- set rn [open download/releasenotes-$vers.html]
105
- fconfigure $rn -encoding utf-8
106
- puts $out "[read $rn]"
107
- close $rn
108
- puts $out "</td></tr>"
109
- }
90
+#
91
+# if {[info exists filesize(download/releasenotes-$vers.html)]} {
92
+# puts $out "<tr><td colspan=6 align=left>"
93
+# set rn [|open uv cat download/releasenotes-$vers.html]
94
+# fconfigure $rn -encoding utf-8
95
+# puts $out "[read $rn]"
96
+# close $rn
97
+# puts $out "</td></tr>"
98
+# }
11099
}
111100
puts $out "<tr><td colspan=5><hr></td></tr>"
112101
113
-puts $out {</table></div>
114
-</body>
115
-</html>
116
-}
117
-
102
+puts $out {</table></center></div>}
118103
close $out
119104
120105
# Generate the checksum page
121106
#
122107
set out [open fossil_download_checksums.html w]
@@ -128,11 +113,15 @@
128113
<p>The following table shows the SHA1 checksums for the precompiled
129114
binaries available on the
130115
<a href="/download.html">Fossil website</a>.</p>
131116
<pre>}
132117
133
-foreach file [lsort [glob -nocomplain download/fossil-*.zip]] {
134
- set sha1sum [lindex [exec sha1sum $file] 0]
135
- puts $out "$sha1sum [file tail $file]"
118
+foreach {line} [split [exec fossil sql "SELECT hash, name FROM unversioned\
119
+ WHERE name GLOB '*.tar.gz' OR\
120
+ name GLOB '*.zip'"] \n] {
121
+ set x [split $line |]
122
+ set hash [lindex $x 0]
123
+ set nm [file tail [lindex $x 1]]
124
+ puts $out "$hash $nm"
136125
}
137126
puts $out {</pre></body></html>}
138127
close $out
139128
--- www/mkdownload.tcl
+++ www/mkdownload.tcl
@@ -1,41 +1,18 @@
1 #!/usr/bin/tclsh
2 #
3 # Run this script to build the "download.html" page. Also generate
4 # the fossil_download_checksums.html page.
 
 
5 #
6 #
7 set out [open download.html w]
8 fconfigure $out -encoding utf-8 -translation lf
9 puts $out \
10 {<!DOCTYPE html>
11 <html>
12 <head>
13 <base href="https://www.fossil-scm.org/download.html" />
14 <title>Fossil: Download</title>
15 <link rel="alternate" type="application/rss+xml" title="RSS Feed"
16 href="/fossil/timeline.rss" />
17 <link rel="stylesheet" href="/fossil/style.css?default" type="text/css"
18 media="screen" />
19 </head>
20
21 <body>
22 <div class="header">
23 <div class="title"><h1>Fossil</h1>Download</div>
24 </div>
25 <div class="mainmenu">
26 <a href='/fossil/doc/trunk/www/index.wiki'>Home</a>
27 <a href='/fossil/timeline?y=ci'>Timeline</a>
28 <a href='/fossil/dir?ci=tip'>Code</a>
29 <a href='/fossil/doc/trunk/www/permutedindex.html'>Docs</a>
30 <a href='/fossil/brlist'>Branches</a>
31 <a href='/fossil/ticket'>Tickets</a>
32 <a href='/fossil/wiki'>Wiki</a>
33 <a href='/download.html' class='active'>Download</a>
34 </div>
35 <div class="content">
36 <p>
37
38 <center><font size=4>}
39 puts $out \
40 "<b>To install Fossil &rarr;</b> download the stand-alone executable"
41 puts $out \
@@ -45,46 +22,57 @@
45 <a href="http://download.opensuse.org/repositories/home:/rmax:/fossil/">
46 here.</a>
47 Cryptographic checksums for download files are
48 <a href="http://www.hwaci.com/fossil_download_checksums.html">here</a>.
49 </small></p>
50 </center>
51
52 <table cellpadding="10">
53 }
54
55 # Find all all unique timestamps.
56 #
57 foreach file [glob -nocomplain download/fossil-*.zip] {
58 if {[regexp -- {-(\d\.\d+).zip$} $file all version]} {
 
 
 
 
59 set avers($version) 1
60 }
61 }
 
 
 
 
 
62
63 # Do all versions from newest to oldest
64 #
65 foreach vers [lsort -decr -real [array names avers]] {
66 set hr "/fossil/timeline?c=version-$vers;y=ci"
 
 
67 puts $out "<tr><td colspan=6 align=left><hr>"
68 puts $out "<center><b><a href=\"$hr\">Version $vers</a></b></center>"
 
 
 
 
 
69 puts $out "</td></tr>"
70 puts $out "<tr>"
71
72 foreach {prefix img desc} {
73 fossil-linux-x86 linux.gif {Linux 3.x x86}
74 fossil-macosx-x86 mac.gif {Mac 10.x x86}
75 fossil-openbsd-x86 openbsd.gif {OpenBSD 5.x x86}
76 fossil-w32 win32.gif {Windows}
77 fossil-src src.gif {Source Tarball}
78 } {
79 set basename download/$prefix-$vers
80 set filename $basename.tar.gz
81 if {![file exists $basename.tar.gz]} {
82 set filename $basename.zip
83 }
84 if {[file exists $filename]} {
85 set size [file size $filename]
86 set units bytes
87 if {$size>1024*1024} {
88 set size [format %.2f [expr {$size/(1024.0*1024.0)}]]
89 set units MiB
90 } elseif {$size>1024} {
@@ -97,26 +85,23 @@
97 } else {
98 puts $out "<td>&nbsp;</td>"
99 }
100 }
101 puts $out "</tr>"
102 if {[file exists download/releasenotes-$vers.html]} {
103 puts $out "<tr><td colspan=6 align=left>"
104 set rn [open download/releasenotes-$vers.html]
105 fconfigure $rn -encoding utf-8
106 puts $out "[read $rn]"
107 close $rn
108 puts $out "</td></tr>"
109 }
 
110 }
111 puts $out "<tr><td colspan=5><hr></td></tr>"
112
113 puts $out {</table></div>
114 </body>
115 </html>
116 }
117
118 close $out
119
120 # Generate the checksum page
121 #
122 set out [open fossil_download_checksums.html w]
@@ -128,11 +113,15 @@
128 <p>The following table shows the SHA1 checksums for the precompiled
129 binaries available on the
130 <a href="/download.html">Fossil website</a>.</p>
131 <pre>}
132
133 foreach file [lsort [glob -nocomplain download/fossil-*.zip]] {
134 set sha1sum [lindex [exec sha1sum $file] 0]
135 puts $out "$sha1sum [file tail $file]"
 
 
 
 
136 }
137 puts $out {</pre></body></html>}
138 close $out
139
--- www/mkdownload.tcl
+++ www/mkdownload.tcl
@@ -1,41 +1,18 @@
1 #!/usr/bin/tclsh
2 #
3 # Run this script to build andn install the "download.html" page of
4 # unversioned comment.
5 #
6 # Also generate the fossil_download_checksums.html page.
7 #
8 #
9 set out [open download.html w]
10 fconfigure $out -encoding utf-8 -translation lf
11 puts $out \
12 {<!DOCTYPE html>
13 <div class='fossil-doc' data-title='Download Page'>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
15 <center><font size=4>}
16 puts $out \
17 "<b>To install Fossil &rarr;</b> download the stand-alone executable"
18 puts $out \
@@ -45,46 +22,57 @@
22 <a href="http://download.opensuse.org/repositories/home:/rmax:/fossil/">
23 here.</a>
24 Cryptographic checksums for download files are
25 <a href="http://www.hwaci.com/fossil_download_checksums.html">here</a>.
26 </small></p>
 
 
27 <table cellpadding="10">
28 }
29
30 # Find all unique timestamps.
31 #
32 set in [open {|fossil uv list} rb]
33 while {[gets $in line]>0} {
34 set fn [lindex $line 5]
35 set filesize($fn) [lindex $line 3]
36 if {[regexp -- {-(\d\.\d+)\.(tar\.gz|zip)$} $fn all version]} {
37 set filehash($fn) [lindex $line 1]
38 set avers($version) 1
39 }
40 }
41 close $in
42
43 set vdate(1.36) 2016-10-24
44 set vdate(1.35) 2016-06-14
45 set vdate(1.34) 2016-11-02
46
47 # Do all versions from newest to oldest
48 #
49 foreach vers [lsort -decr -real [array names avers]] {
50 # set hr "../timeline?c=version-$vers;y=ci"
51 set v2 v[string map {. _} $vers]
52 set hr "../doc/trunk/www/changes.wiki#$v2"
53 puts $out "<tr><td colspan=6 align=left><hr>"
54 puts $out "<center><b><a href=\"$hr\">Version $vers</a>"
55 if {[info exists vdate($vers)]} {
56 set hr2 "../timeline?c=version-$vers&amp;y=ci"
57 puts $out " (<a href='$hr2'>$vdate($vers)</a>)"
58 }
59 puts $out "</b></center>"
60 puts $out "</td></tr>"
61 puts $out "<tr>"
62
63 foreach {prefix img desc} {
64 fossil-linux-x86 linux.gif {Linux 3.x x86}
65 fossil-macosx mac.gif {Mac 10.x x86}
66 fossil-openbsd-x86 openbsd.gif {OpenBSD 5.x x86}
67 fossil-w32 win32.gif {Windows}
68 fossil-src src.gif {Source Tarball}
69 } {
70 set glob download/$prefix*-$vers*
71 set filename [array names filesize $glob]
72 if {[info exists filesize($filename)]} {
73 set size [set filesize($filename)]
 
 
 
74 set units bytes
75 if {$size>1024*1024} {
76 set size [format %.2f [expr {$size/(1024.0*1024.0)}]]
77 set units MiB
78 } elseif {$size>1024} {
@@ -97,26 +85,23 @@
85 } else {
86 puts $out "<td>&nbsp;</td>"
87 }
88 }
89 puts $out "</tr>"
90 #
91 # if {[info exists filesize(download/releasenotes-$vers.html)]} {
92 # puts $out "<tr><td colspan=6 align=left>"
93 # set rn [|open uv cat download/releasenotes-$vers.html]
94 # fconfigure $rn -encoding utf-8
95 # puts $out "[read $rn]"
96 # close $rn
97 # puts $out "</td></tr>"
98 # }
99 }
100 puts $out "<tr><td colspan=5><hr></td></tr>"
101
102 puts $out {</table></center></div>}
 
 
 
 
103 close $out
104
105 # Generate the checksum page
106 #
107 set out [open fossil_download_checksums.html w]
@@ -128,11 +113,15 @@
113 <p>The following table shows the SHA1 checksums for the precompiled
114 binaries available on the
115 <a href="/download.html">Fossil website</a>.</p>
116 <pre>}
117
118 foreach {line} [split [exec fossil sql "SELECT hash, name FROM unversioned\
119 WHERE name GLOB '*.tar.gz' OR\
120 name GLOB '*.zip'"] \n] {
121 set x [split $line |]
122 set hash [lindex $x 0]
123 set nm [file tail [lindex $x 1]]
124 puts $out "$hash $nm"
125 }
126 puts $out {</pre></body></html>}
127 close $out
128

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button