home *** CD-ROM | disk | FTP | other *** search
-
- #
- # @(#) diff3.sh 1.1 86/12/17
- #
- # Copyright (C) Microsoft Corporation, 1983
- #
- # This Module contains Proprietary Information of Microsoft
- # Corporation and AT&T, and should be treated as Confidential.
- #
-
- e=
- case $1 in
- -*) e=$1; shift ;;
- esac
-
- [ $# = 3 -a -f $1 -a -f $2 -a -f $3 ] || {
- echo usage: diff3 file1 file2 file3 1>&2
- exit
- }
-
- trap "rm -f /tmp/d3[ab]$$" 0 1 2 13 15
- diff $1 $3 >/tmp/d3a$$
- diff $2 $3 >/tmp/d3b$$
- /usr/lib/diff3prog $e /tmp/d3[ab]$$ $1 $2 $3
-