7f99f3a293
This is in preparation of NetBSD's tools directory to build tools for cross compilation.
15 lines
261 B
Bash
15 lines
261 B
Bash
#!/bin/sh
|
|
diff=$3
|
|
rm -f "$diff"
|
|
if [ ! -d "$1" -o ! -d "$2" ]
|
|
then echo Skipping $diff
|
|
exit 0
|
|
fi
|
|
diff -aru $1 $2 | \
|
|
sed /"^Only in"/d | \
|
|
sed -e 's/^\(---.*\)\t.*/\1/' | \
|
|
sed -e 's/^\(\+\+\+.*\)\t.*/\1/' > $diff
|
|
|
|
if [ ! -s "$diff" ]
|
|
then rm -f "$diff"
|
|
fi
|