5 echo >&2 "USAGE: $0 <SOURCE_DIR> <OUTPUT>"
15 c
=////////////////////////////////////////////////////////////////
16 skel
=api-index-skel.txt
17 sed -e '/^\/\/ table of contents begin/q' "$skel"
24 api-index-skel.txt | api-index.txt
) continue ;;
26 title
=$
(sed -e 1q
"$filename")
27 html
=${filename%.txt}.html
28 echo "* link:$html[$title]"
31 sed -n -e '/^\/\/ table of contents end/,$p' "$skel"
34 if test -f "$OUTPUT" && cmp "$OUTPUT" "$OUTPUT"+ >/dev
/null
38 mv "$OUTPUT"+ "$OUTPUT"