summaryrefslogtreecommitdiff
path: root/chardiff.sh
blob: b6d7403b97ebb01f468b6172393a595e5c867a96 (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"