Annotation of 43BSDTahoe/usr.bin/diff3/diff3.sh, revision 1.1.1.1

1.1       root        1: #! /bin/sh
                      2: #
                      3: #      diff3.sh        4.1     83/02/10
                      4: #
                      5: e=
                      6: case $1 in
                      7: -*)
                      8:        e=$1
                      9:        shift;;
                     10: esac
                     11: if test $# = 3 -a -f $1 -a -f $2 -a -f $3
                     12: then
                     13:        :
                     14: else
                     15:        echo usage: diff3 file1 file2 file3 1>&2
                     16:        exit
                     17: fi
                     18: trap "rm -f /tmp/d3[ab]$$" 0 1 2 13 15
                     19: diff $1 $3 >/tmp/d3a$$
                     20: diff $2 $3 >/tmp/d3b$$
                     21: /usr/lib/diff3 $e /tmp/d3[ab]$$ $1 $2 $3

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.