blob: 7e46c46f82e461ae3d5758bbbbeef8f3af767842 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env bash
(
cd isolinux||exit 2
true>../isolinux.diff||exit 4
for i in *.cfg;do
echo "# diff -u $i.old $i >> ../isolinux.diff" >> ../isolinux.diff||exit 8
diff -u "$i".old "$i" >> ../isolinux.diff
case "$?" in
0) printf "No change for %b.\n" "$i";;
1) printf "Logged changes for %b.\n" "$i";;
*) printf "Something broke with $b!" >&2 "$i";exit 8;;
esac
done
)
|