scdoc2mdoc

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

lib.sh (193B)


      1 printf '== %s\n' "$0"
      2 trap "printf '\n'" EXIT
      3 
      4 begin() {
      5 	printf '%-40s' "$1"
      6 }
      7 
      8 scdoc() {
      9 	./scdoc "$@" 2>&1
     10 }
     11 
     12 end() {
     13 	if [ $? -ne "$1" ]
     14 	then
     15 		printf 'FAIL\n'
     16 	else
     17 		printf 'OK\n'
     18 	fi
     19 }