Check-in [d296d2695e]
Overview
Comment:Use mandoc from AppFS to generate wiki HTML page
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d296d2695e4485afd9d1d91e3300af418a2ce2dd9773520a9c673bdfa354167f
User & Date: rkeene on 2018-11-19 19:42:12
Other Links: manifest | tags
Context
2018-11-19
19:52
Removed functions which are no longer public check-in: f1e2991833 user: rkeene tags: trunk
19:42
Use mandoc from AppFS to generate wiki HTML page check-in: d296d2695e user: rkeene tags: trunk
19:41
Use an unsigned type for the maximum seed check-in: 1db766b249 user: rkeene tags: trunk
Changes

Modified build/update-wiki from [2a0c1c7c7c] to [a30687caba].

86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Determine current development version
tclNanoDevelopmentVersion="$(awk '/^AC_INIT\(/{ sub(/^AC_INIT\([^,]*, */, ""); sub(/[,\)].*$/, ""); print; }' < configure.ac)"
tclNanoDevelopmentDate="$(date +%d-%b-%Y)"

# Generate the new manual page entry for the development version
developmentManPage="$(
	sed "s/@@VERS@@/${tclNanoDevelopmentVersion}/g;s/@@SHORT_DATE@@/${tclNanoDevelopmentDate}/g" nano.man | \
	/home/rkeene/devel/tcl-nano/build/work/pkgs/mandoc-1.14.4/INST/bin/mandoc -Thtml -Ofragment | \
	sed 's/<div[^>]*>&#x00A0;<\/div>//g;s@\[@\&#91;@g;s@\]@\&#93;@g'
)"
updatePage "${wikiPageManual}" "${developmentManPage}"

# Generate a PDF manual page for the release version, if it does not already exist
if ! fossilUVExists "${tclNanoReleaseManualPDF}"; then
	tclNanoReleaseManualPDFTmp="$(mktemp -u)"







|







86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Determine current development version
tclNanoDevelopmentVersion="$(awk '/^AC_INIT\(/{ sub(/^AC_INIT\([^,]*, */, ""); sub(/[,\)].*$/, ""); print; }' < configure.ac)"
tclNanoDevelopmentDate="$(date +%d-%b-%Y)"

# Generate the new manual page entry for the development version
developmentManPage="$(
	sed "s/@@VERS@@/${tclNanoDevelopmentVersion}/g;s/@@SHORT_DATE@@/${tclNanoDevelopmentDate}/g" nano.man | \
	/opt/appfs/rkeene.org/mandoc/platform/latest/bin/mandoc -Thtml -Ofragment | \
	sed 's/<div[^>]*>&#x00A0;<\/div>//g;s@\[@\&#91;@g;s@\]@\&#93;@g'
)"
updatePage "${wikiPageManual}" "${developmentManPage}"

# Generate a PDF manual page for the release version, if it does not already exist
if ! fossilUVExists "${tclNanoReleaseManualPDF}"; then
	tclNanoReleaseManualPDFTmp="$(mktemp -u)"