=================================================================== RCS file: /cvs/mandoc/Attic/strings.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- mandoc/Attic/strings.sh 2009/03/06 14:13:47 1.1 +++ mandoc/Attic/strings.sh 2009/03/06 14:24:49 1.2 @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: strings.sh,v 1.1 2009/03/06 14:13:47 kristaps Exp $ +# $Id: strings.sh,v 1.2 2009/03/06 14:24:49 kristaps Exp $ # strings.sh [-o output] name input # @@ -67,6 +67,9 @@ mdoc_a2${name}(const char *p) ! while read in ; do + [ -z "$in" ] && continue; + [ "#" == `echo "$in" | cut -c1` ] && continue; + key=`printf "%s\n" "$in" | cut -f 1` val=`printf "%s\n" "$in" | cut -f 2- | sed 's!^[ ]*!!'` cat <