home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 200.img / SCO386X3.TD0 / bin / diff3 < prev    next >
Encoding:
Text File  |  1987-04-13  |  470 b   |  25 lines

  1.  
  2. #
  3. #    @(#) diff3.sh 1.1 86/12/17 
  4. #
  5. #    Copyright (C) Microsoft Corporation, 1983
  6. #
  7. #    This Module contains Proprietary Information of Microsoft
  8. #    Corporation and AT&T, and should be treated as Confidential.
  9. #
  10.  
  11. e=
  12. case $1 in
  13. -*)    e=$1; shift    ;;
  14. esac
  15.  
  16. [ $# = 3 -a -f $1 -a -f $2 -a -f $3 ] || {
  17.     echo usage: diff3 file1 file2 file3 1>&2
  18.     exit
  19. }
  20.  
  21. trap "rm -f /tmp/d3[ab]$$" 0 1 2 13 15
  22. diff $1 $3 >/tmp/d3a$$
  23. diff $2 $3 >/tmp/d3b$$
  24. /usr/lib/diff3prog $e /tmp/d3[ab]$$ $1 $2 $3
  25.