[BACK]Return to strings.sh CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/strings.sh between version 1.2 and 1.3

version 1.2, 2009/03/06 14:24:49 version 1.3, 2009/03/08 19:32:03
Line 45  fi
Line 45  fi
 input=$2  input=$2
   
 if [ "$output" ]; then  if [ "$output" ]; then
         exec 1<>$output          exec >$output
 fi  fi
   
 if [ "$input" ]; then  if [ "$input" ]; then
         exec 0<>$input          exec <$input
 fi  fi
   
 cat <<!  cat <<!
Line 67  mdoc_a2${name}(const char *p)
Line 67  mdoc_a2${name}(const char *p)
 !  !
   
 while read in ; do  while read in ; do
         [ -z "$in" ] && continue;          if [ -z "$in" ]; then
         [ "#" == `echo "$in" | cut -c1` ] && continue;                  continue
           fi
           if [ "#" = `echo "$in" | cut -c1` ]; then
                   continue
           fi
         key=`printf "%s\n" "$in" | cut -f 1`          key=`printf "%s\n" "$in" | cut -f 1`
         val=`printf "%s\n" "$in" | cut -f 2- | sed 's!^[        ]*!!'`          val=`printf "%s\n" "$in" | cut -f 2- | sed 's!^[        ]*!!'`
         cat <<!          cat <<!

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb