scdoc2mdoc

A fork of scdoc to output mdoc(7)
git clone git://git.sgregoratto.me/scdoc2mdoc
Log | Files | Refs | README | LICENSE

comments (270B)


      1 #!/bin/sh
      2 . test/lib.sh
      3 
      4 begin "Ignore comments"
      5 scdoc <<EOF | grep "this is a comment" >/dev/null
      6 test(8)
      7 
      8 ; this is a comment
      9 
     10 Hello world!
     11 EOF
     12 end 1
     13 
     14 begin "Fail on invalid comments"
     15 scdoc <<EOF >/dev/null
     16 test(8)
     17 
     18 ;this is an invalid comment
     19 
     20 Hello world!
     21 EOF
     22 end 1