tmux/tools/cmp-cvs.sh
2017-05-31 16:34:39 +01:00

13 lines
223 B
Bash

#!/bin/ksh
rm diff.out
touch diff.out
for i in *.[ch]; do
diff -u -I'\$OpenBSD' $i ../../OpenBSD/tmux/$i >diff.tmp
set -- `wc -l diff.tmp`
[ $1 -eq 8 ] && continue
echo $i
cat diff.tmp >>diff.out
done