scmdoc

Automatically generate documentation from comments in R7RS Scheme code

git clone https://git.8pit.net/scmdoc.git

 1#!/bin/sh
 2set -e
 3
 4prettify() {
 5	tidy \
 6		--wrap 0 \
 7		--indent yes \
 8		--show-body-only yes \
 9		"$@" 2>/dev/null
10}
11
12for test in *; do
13	[ -d "${test}" ] || continue
14
15	rm -rf "${test}/expected"
16	scmdoc "${test}"/*.scm -o "${test}"/expected
17
18	find "${test}/expected" -name '*.html' \
19		-exec tidy --wrap 0 --indent yes \
20		--show-body-only yes -o {} {} \; 2>/dev/null
21done