~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to gendiff

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
[ -z "$1" -o -z "$2" ] && {
 
4
# usage
 
5
  echo "usage: $0 <directory> <diff-extension>" 1>&2
 
6
  exit 1
 
7
}
 
8
 
 
9
find $1 \( -name "*$2" -o -name ".*$2" \) -print |
 
10
while read f; do
 
11
    U=-u
 
12
    [ "`basename $f`" = "ChangeLog$2" ] && U=-U0
 
13
    diff ${U} $f `echo $f | sed s/$2\$//`
 
14
done