Fossil SCM

Remove the mkdownload.html file from the documentation folder, since it is no longer used. Remove mention of OpenBSD from installation instructions, since precompiled binaries for that platform are no longer provided.

drh 2018-02-23 21:24 trunk
Commit c44d9e4dba434b44b5cb315376159c1abf9f9e8106b6d3193bcbf7922a50d2ec
+1 -1
--- www/index.wiki
+++ www/index.wiki
@@ -48,11 +48,11 @@
4848
4949
3. <b>Self-Contained</b> -
5050
Fossil is a single self-contained stand-alone executable.
5151
To install, simply download a
5252
[/uv/download.html | precompiled binary]
53
- for Linux, Mac, OpenBSD, or Windows and put it on your $PATH.
53
+ for Linux, Mac, or Windows and put it on your $PATH.
5454
[./build.wiki | Easy-to-compile source code] is also available.
5555
5656
4. <b>Simple Networking</b> -
5757
No custom protocols or TCP ports.
5858
Fossil uses ordinary HTTP (or HTTPS or SSH)
5959
6060
DELETED www/mkdownload.tcl
--- www/index.wiki
+++ www/index.wiki
@@ -48,11 +48,11 @@
48
49 3. <b>Self-Contained</b> -
50 Fossil is a single self-contained stand-alone executable.
51 To install, simply download a
52 [/uv/download.html | precompiled binary]
53 for Linux, Mac, OpenBSD, or Windows and put it on your $PATH.
54 [./build.wiki | Easy-to-compile source code] is also available.
55
56 4. <b>Simple Networking</b> -
57 No custom protocols or TCP ports.
58 Fossil uses ordinary HTTP (or HTTPS or SSH)
59
60 ELETED www/mkdownload.tcl
--- www/index.wiki
+++ www/index.wiki
@@ -48,11 +48,11 @@
48
49 3. <b>Self-Contained</b> -
50 Fossil is a single self-contained stand-alone executable.
51 To install, simply download a
52 [/uv/download.html | precompiled binary]
53 for Linux, Mac, or Windows and put it on your $PATH.
54 [./build.wiki | Easy-to-compile source code] is also available.
55
56 4. <b>Simple Networking</b> -
57 No custom protocols or TCP ports.
58 Fossil uses ordinary HTTP (or HTTPS or SSH)
59
60 ELETED www/mkdownload.tcl
D www/mkdownload.tcl
-125
--- a/www/mkdownload.tcl
+++ b/www/mkdownload.tcl
@@ -1,125 +0,0 @@
1
-#!/usr/bin/tclsh
2
-#
3
-# Run this script to build and 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
-{<div class='fossil-doc' data-title='Download Page'>
13
-
14
-<center><font size=4>}
15
-puts $out \
16
-"<b>To install Fossil &rarr;</b> download the stand-alone executable"
17
-puts $out \
18
-{and put it on your $PATH.
19
-</font><p><small>
20
-RPMs available
21
-<a href="http://download.opensuse.org/repositories/home:/rmax:/fossil/">
22
-here.</a>
23
-Cryptographic checksums for download files are
24
-<a href="http://www.hwaci.com/fossil_download_checksums.html">here</a>.
25
-</small></p>
26
-<table cellpadding="10">
27
-}
28
-
29
-# Find all unique timestamps.
30
-#
31
-set in [open {|fossil uv list} rb]
32
-while {[gets $in line]>0} {
33
- set fn [lindex $line 5]
34
- set filesize($fn) [lindex $line 3]
35
- if {[regexp -- {-(\d\.\d+)\.(tar\.gz|zip)$} $fn all version]} {
36
- set filehash($fn) [lindex $line 1]
37
- set avers($version) 1
38
- }
39
-}
40
-close $in
41
-
42
-set vdate(2.0) 2017-03-03
43
-set vdate(1.37) 2017-01-15
44
-
45
-# Do all versions from newest to oldest
46
-#
47
-foreach vers [lsort -decr -real [array names avers]] {
48
- # set hr "../timeline?c=version-$vers;y=ci"
49
- set v2 v[string map {. _} $vers]
50
- set hr "../doc/trunk/www/changes.wiki#$v2"
51
- puts $out "<tr><td colspan=6 align=left><hr>"
52
- puts $out "<center><b><a href=\"$hr\">Version $vers</a>"
53
- if {[info exists vdate($vers)]} {
54
- set hr2 "../timeline?c=version-$vers&amp;y=ci"
55
- puts $out " (<a href='$hr2'>$vdate($vers)</a>)"
56
- }
57
- puts $out "</b></center>"
58
- puts $out "</td></tr>"
59
- puts $out "<tr>"
60
-
61
- foreach {prefix img desc} {
62
- fossil-linux linux.gif {Linux 3.x x64}
63
- fossil-macosx mac.gif {Mac 10.x x86}
64
- fossil-openbsd-x86 openbsd.gif {OpenBSD 5.x x86}
65
- fossil-w32 win32.gif {Windows}
66
- fossil-src src.gif {Source Tarball}
67
- } {
68
- set glob download/$prefix*-$vers*
69
- set filename [array names filesize $glob]
70
- if {[info exists filesize($filename)]} {
71
- set size [set filesize($filename)]
72
- set units bytes
73
- if {$size>1024*1024} {
74
- set size [format %.2f [expr {$size/(1024.0*1024.0)}]]
75
- set units MiB
76
- } elseif {$size>1024} {
77
- set size [format %.2f [expr {$size/(1024.0)}]]
78
- set units KiB
79
- }
80
- puts $out "<td align=center valign=bottom><a href=\"$filename\">"
81
- puts $out "<img src=\"build-icons/$img\" border=0><br>$desc</a><br>"
82
- puts $out "$size $units</td>"
83
- } else {
84
- puts $out "<td>&nbsp;</td>"
85
- }
86
- }
87
- puts $out "</tr>"
88
-#
89
-# if {[info exists filesize(download/releasenotes-$vers.html)]} {
90
-# puts $out "<tr><td colspan=6 align=left>"
91
-# set rn [|open uv cat download/releasenotes-$vers.html]
92
-# fconfigure $rn -encoding utf-8
93
-# puts $out "[read $rn]"
94
-# close $rn
95
-# puts $out "</td></tr>"
96
-# }
97
-}
98
-puts $out "<tr><td colspan=5><hr></td></tr>"
99
-
100
-puts $out {</table></center></div>}
101
-close $out
102
-
103
-# Generate the checksum page
104
-#
105
-set out [open fossil_download_checksums.html w]
106
-fconfigure $out -encoding utf-8 -translation lf
107
-puts $out {<html>
108
-<title>Fossil Download Checksums</title>
109
-<body>
110
-<h1 align="center">Checksums For Fossil Downloads</h1>
111
-<p>The following table shows the SHA1 checksums for the precompiled
112
-binaries available on the
113
-<a href="/uv/download.html">Fossil website</a>.</p>
114
-<pre>}
115
-
116
-foreach {line} [split [exec fossil sql "SELECT hash, name FROM unversioned\
117
- WHERE name GLOB '*.tar.gz' OR\
118
- name GLOB '*.zip'"] \n] {
119
- set x [split $line |]
120
- set hash [lindex $x 0]
121
- set nm [file tail [lindex $x 1]]
122
- puts $out "$hash $nm"
123
-}
124
-puts $out {</pre></body></html>}
125
-close $out
--- a/www/mkdownload.tcl
+++ b/www/mkdownload.tcl
@@ -1,125 +0,0 @@
1 #!/usr/bin/tclsh
2 #
3 # Run this script to build and 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 {<div class='fossil-doc' data-title='Download Page'>
13
14 <center><font size=4>}
15 puts $out \
16 "<b>To install Fossil &rarr;</b> download the stand-alone executable"
17 puts $out \
18 {and put it on your $PATH.
19 </font><p><small>
20 RPMs available
21 <a href="http://download.opensuse.org/repositories/home:/rmax:/fossil/">
22 here.</a>
23 Cryptographic checksums for download files are
24 <a href="http://www.hwaci.com/fossil_download_checksums.html">here</a>.
25 </small></p>
26 <table cellpadding="10">
27 }
28
29 # Find all unique timestamps.
30 #
31 set in [open {|fossil uv list} rb]
32 while {[gets $in line]>0} {
33 set fn [lindex $line 5]
34 set filesize($fn) [lindex $line 3]
35 if {[regexp -- {-(\d\.\d+)\.(tar\.gz|zip)$} $fn all version]} {
36 set filehash($fn) [lindex $line 1]
37 set avers($version) 1
38 }
39 }
40 close $in
41
42 set vdate(2.0) 2017-03-03
43 set vdate(1.37) 2017-01-15
44
45 # Do all versions from newest to oldest
46 #
47 foreach vers [lsort -decr -real [array names avers]] {
48 # set hr "../timeline?c=version-$vers;y=ci"
49 set v2 v[string map {. _} $vers]
50 set hr "../doc/trunk/www/changes.wiki#$v2"
51 puts $out "<tr><td colspan=6 align=left><hr>"
52 puts $out "<center><b><a href=\"$hr\">Version $vers</a>"
53 if {[info exists vdate($vers)]} {
54 set hr2 "../timeline?c=version-$vers&amp;y=ci"
55 puts $out " (<a href='$hr2'>$vdate($vers)</a>)"
56 }
57 puts $out "</b></center>"
58 puts $out "</td></tr>"
59 puts $out "<tr>"
60
61 foreach {prefix img desc} {
62 fossil-linux linux.gif {Linux 3.x x64}
63 fossil-macosx mac.gif {Mac 10.x x86}
64 fossil-openbsd-x86 openbsd.gif {OpenBSD 5.x x86}
65 fossil-w32 win32.gif {Windows}
66 fossil-src src.gif {Source Tarball}
67 } {
68 set glob download/$prefix*-$vers*
69 set filename [array names filesize $glob]
70 if {[info exists filesize($filename)]} {
71 set size [set filesize($filename)]
72 set units bytes
73 if {$size>1024*1024} {
74 set size [format %.2f [expr {$size/(1024.0*1024.0)}]]
75 set units MiB
76 } elseif {$size>1024} {
77 set size [format %.2f [expr {$size/(1024.0)}]]
78 set units KiB
79 }
80 puts $out "<td align=center valign=bottom><a href=\"$filename\">"
81 puts $out "<img src=\"build-icons/$img\" border=0><br>$desc</a><br>"
82 puts $out "$size $units</td>"
83 } else {
84 puts $out "<td>&nbsp;</td>"
85 }
86 }
87 puts $out "</tr>"
88 #
89 # if {[info exists filesize(download/releasenotes-$vers.html)]} {
90 # puts $out "<tr><td colspan=6 align=left>"
91 # set rn [|open uv cat download/releasenotes-$vers.html]
92 # fconfigure $rn -encoding utf-8
93 # puts $out "[read $rn]"
94 # close $rn
95 # puts $out "</td></tr>"
96 # }
97 }
98 puts $out "<tr><td colspan=5><hr></td></tr>"
99
100 puts $out {</table></center></div>}
101 close $out
102
103 # Generate the checksum page
104 #
105 set out [open fossil_download_checksums.html w]
106 fconfigure $out -encoding utf-8 -translation lf
107 puts $out {<html>
108 <title>Fossil Download Checksums</title>
109 <body>
110 <h1 align="center">Checksums For Fossil Downloads</h1>
111 <p>The following table shows the SHA1 checksums for the precompiled
112 binaries available on the
113 <a href="/uv/download.html">Fossil website</a>.</p>
114 <pre>}
115
116 foreach {line} [split [exec fossil sql "SELECT hash, name FROM unversioned\
117 WHERE name GLOB '*.tar.gz' OR\
118 name GLOB '*.zip'"] \n] {
119 set x [split $line |]
120 set hash [lindex $x 0]
121 set nm [file tail [lindex $x 1]]
122 puts $out "$hash $nm"
123 }
124 puts $out {</pre></body></html>}
125 close $out
--- a/www/mkdownload.tcl
+++ b/www/mkdownload.tcl
@@ -1,125 +0,0 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Keyboard Shortcuts

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