summaryrefslogtreecommitdiff
path: root/chardiff.sh
blob: 74c3b2eff19dff2e300cb5335dfee274c080efc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

file1=${1?usage: chardiff FILE1 FILE2 [FLAGS]}
file2=${2?usage: chardiff FILE1 FILE2 [FLAGS]}
shift 2

tmp1=`mktemp`
chardiff_pre < "$file1" > "$tmp1"

tmp2=`mktemp`
chardiff_pre < "$file2" > "$tmp2"

wdiff "$@" "$tmp1" "$tmp2" | chardiff_post
rm "$tmp1" "$tmp2"