openbsd-ports/devel/autoconf/2.13/files/cdiff
espie 95b0f37db7 slightly changed version of the autoconf-2.13 port, that does NOT install
itself as autoconf to be able to coexist with autoconf-2.52.
2003-02-15 14:02:54 +00:00

15 lines
411 B
Bash
Executable File

#!/bin/sh
a=`mktemp /tmp/$1.XXXXXXXXXX`
b=`mktemp /tmp/$2.XXXXXXXXXX`
trap 'rm $a $b; exit 0' 0 1 2 3 13 15
sed -e 's,configure:[0-9]*:,configure:####:,' \
-e 's,^#line [0-9]*,#line ####,' \
-e 's,$as_me:[0-9]*:,$as_me::,' \
<$1 >$a
sed -e 's,configure:[0-9]*:,configure:####:,' \
-e 's,^#line [0-9]*,#line ####,' \
-e 's,$as_me:[0-9]*:,$as_me::,' \
<$2 >$b
diff -u $a $b|sed -e s,$a,$1, -e s,$b,$2,