.ugly/update-README.md.sh
03864495
 #! /bin/sh
 
 if [ ! -d .ugly ]
 then
    echo "fail"
    exit 1
 fi
 
 cat .ugly/README.md.header 
 
 #
 # need mulle-markdown-utilities to generate this
 #
 n=0
 for i in $*
 do
   n=`expr $n + 1`
 done 
 
 i=0
 for manpage in $*
 do
98cc3012
    i=`expr $i + 1`
03864495
    if [ -f "$manpage" ]
    then
       echo "##" `basename $manpage .8` 
98cc3012
       /bin/echo -n "<pre>"
       nroff -man "$manpage" | col -b  
       /bin/echo "</pre>"
03864495
       if [ $i -lt $n ] 
       then
          echo "---"
       fi
    fi
 done
 
 cat .ugly/README.md.footer