Add support for generating ReST files

This commit is contained in:
Pierre Pronchery 2019-02-12 01:44:28 +01:00
parent d2df9f4a44
commit 317a415028

View File

@ -63,6 +63,10 @@ _markdown()
$DEBUG $RST2HTML "${target%.*}.rst" > "$target"
res=$?
;;
rst)
$DEBUG $MD2RST "$source" || return 2
res=$?
;;
1|2|3|4|5|6|7|8|9)
$DEBUG $MD2RST "$source" || return 2
$DEBUG $RST2MAN "${target%.*}.rst" > "$target"
@ -173,6 +177,8 @@ while [ $# -gt 0 ]; do
tmpfile="${source%.*}.rst"
$DEBUG $RM -- "$tmpfile"
;;
rst)
;;
*)
_error "$target: Unknown type"
return 2