File: cbars.sh

package info (click to toggle)
wdiff 0.5-16etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 576 kB
  • ctags: 274
  • sloc: ansic: 2,391; sh: 327; lisp: 243; makefile: 228
file content (12 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Produce change bars from two revisions of a document.
# Copyright (C) 1992 Free Software Foundation, Inc.
# Francois Pinard <pinard@iro.umontreal.ca>, 1992.

usage="$0 OLD_FILE NEW_FILE"

if [ $# -ne 2 ]; then
  echo "$usage"; exit
fi

@bindir@/wdiff -1n $1 $2 | sed -e 's/^/  /;/{+/s/^ /|/;s/{+//g;s/+}//g'