tmplcvt 301 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. #
  3. # Convert a template file into something like RST
  4. #
  5. # fix <function>
  6. # feed to pandoc
  7. # fix \_
  8. # title line?
  9. #
  10. in=$1
  11. rst=$2
  12. tmp=$rst.tmp
  13. cp $in $tmp
  14. sed --in-place -f convert_template.sed $tmp
  15. pandoc -s -S -f docbook -t rst -o $rst $tmp
  16. sed --in-place -f post_convert.sed $rst
  17. rm $tmp