home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / wdiff-0.5-src.tgz / tar.out / fsf / wdiff / cbars.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1996-09-28  |  320b  |  13 lines

  1. #!/bin/sh
  2. # Produce change bars from two revisions of a document.
  3. # Copyright (C) 1992 Free Software Foundation, Inc.
  4. # Francois Pinard <pinard@iro.umontreal.ca>, 1992.
  5.  
  6. usage="$0 OLD_FILE NEW_FILE"
  7.  
  8. if [ $# -ne 2 ]; then
  9.   echo "$usage"; exit
  10. fi
  11.  
  12. @bindir@/wdiff -1n $1 $2 | sed -e 's/^/  /;/{+/s/^ /|/;s/{+//g;s/+}//g'
  13.