release.sh: simplify by removing usb option
[minix3.git] / releasetools / nbsd_diff.sh
blobd0edb06ac77e48e15d1334d97a10dfd08dcb4743
1 #!/bin/sh
2 diff=$3
3 rm -f "$diff"
4 if [ ! -d "$1" -o ! -d "$2" ]
5 then echo Skipping $diff
6 exit 0
7 fi
8 diff -aru $1 $2 | \
9 sed /"^Only in"/d | \
10 sed -e 's/^\(---.*\)\t.*/\1/' | \
11 sed -e 's/^\(\+\+\+.*\)\t.*/\1/' > $diff
13 if [ ! -s "$diff" ]
14 then rm -f "$diff"