Documentation Source Text

Check-in [95ddf6f2f8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Modify the evidence file HTMLization process to put evidence files in separate directories to avoid name collisions.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 95ddf6f2f8d86885f0e85c7ec98111a23492894d
User & Date: drh 2009-12-21 17:10:15
Context
2009-12-22
01:09
Add more requirements marks to the optoverview.html document. check-in: 10b7c35b44 user: drh tags: trunk
2009-12-21
17:10
Modify the evidence file HTMLization process to put evidence files in separate directories to avoid name collisions. check-in: 95ddf6f2f8 user: drh tags: trunk
15:45
Add the new "private" target to the makefile - used to build the requirements matrix that includes TH3 hyperlinks. check-in: 3d7eb1e8f0 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to format_evidence.tcl.

131
132
133
134
135
136
137

138
139
140
141
db transaction {
  foreach file $filelist {
    set srcfile [file tail $file]
    if {![db exists {
       SELECT 1 FROM evidence WHERE srccat=$SRCCAT AND srcfile=$srcfile
    }]} continue
    regsub -all {[^a-zA-Z0-9]} $file _ cleanname

    set dest ev/[file root $srcfile].html
    htmlize_evidence $file $SRCCAT $srcfile $DOCDIR $dest
  }
}







>
|



131
132
133
134
135
136
137
138
139
140
141
142
db transaction {
  foreach file $filelist {
    set srcfile [file tail $file]
    if {![db exists {
       SELECT 1 FROM evidence WHERE srccat=$SRCCAT AND srcfile=$srcfile
    }]} continue
    regsub -all {[^a-zA-Z0-9]} $file _ cleanname
    file mkdir $DOCDIR/ev/$SRCCAT
    set dest ev/$SRCCAT/[file root $srcfile].html
    htmlize_evidence $file $SRCCAT $srcfile $DOCDIR $dest
  }
}

Changes to main.mk.

93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
	fi

# Copy and HTMLize evidence files
#
FMT = $(DOC)/format_evidence.tcl

format_evidence: tclsh
	mkdir -p doc/matrix/ev
	rm -f doc/matrix/ev/*
	./tclsh $(FMT) src doc/matrix $(SRC)/src/*.[chy]
	./tclsh $(FMT) src doc/matrix $(SRC)/ext/fts3/*.[ch]
	./tclsh $(FMT) src doc/matrix $(SRC)/ext/rtree/*.[ch]
	./tclsh $(FMT) tcl doc/matrix $(SRC)/test/*.test

private_evidence: format_evidence
	./tclsh $(FMT) th3 doc/matrix $(TH3)/mkth3.tcl







<
|







93
94
95
96
97
98
99

100
101
102
103
104
105
106
107
	fi

# Copy and HTMLize evidence files
#
FMT = $(DOC)/format_evidence.tcl

format_evidence: tclsh

	rm -fr doc/matrix/ev/*
	./tclsh $(FMT) src doc/matrix $(SRC)/src/*.[chy]
	./tclsh $(FMT) src doc/matrix $(SRC)/ext/fts3/*.[ch]
	./tclsh $(FMT) src doc/matrix $(SRC)/ext/rtree/*.[ch]
	./tclsh $(FMT) tcl doc/matrix $(SRC)/test/*.test

private_evidence: format_evidence
	./tclsh $(FMT) th3 doc/matrix $(TH3)/mkth3.tcl