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