Fossil SCM

Update the script used to build the "download.html" page so that it can accommodate longer timestamps.

drh 2011-01-13 00:54 trunk
Commit 4b2ab22c2a9af62b19b831b1614c05e4dbcccb5e
1 file changed +1 -1
--- www/mkdownload.tcl
+++ www/mkdownload.tcl
@@ -34,11 +34,11 @@
3434
3535
# Find all all unique timestamps.
3636
#
3737
foreach file [glob -nocomplain download/fossil-*.zip] {
3838
if {[regexp {(\d+).zip$} $file all datetime]
39
- && [string length $datetime]==14} {
39
+ && [string length $datetime]>=14} {
4040
set adate($datetime) 1
4141
}
4242
}
4343
4444
# Do all dates from newest to oldest
4545
--- www/mkdownload.tcl
+++ www/mkdownload.tcl
@@ -34,11 +34,11 @@
34
35 # Find all all unique timestamps.
36 #
37 foreach file [glob -nocomplain download/fossil-*.zip] {
38 if {[regexp {(\d+).zip$} $file all datetime]
39 && [string length $datetime]==14} {
40 set adate($datetime) 1
41 }
42 }
43
44 # Do all dates from newest to oldest
45
--- www/mkdownload.tcl
+++ www/mkdownload.tcl
@@ -34,11 +34,11 @@
34
35 # Find all all unique timestamps.
36 #
37 foreach file [glob -nocomplain download/fossil-*.zip] {
38 if {[regexp {(\d+).zip$} $file all datetime]
39 && [string length $datetime]>=14} {
40 set adate($datetime) 1
41 }
42 }
43
44 # Do all dates from newest to oldest
45

Keyboard Shortcuts

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