git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/diff/gen
blob: 5eb19636d9deb0bb2ef2fc853c998d9ecefb8e7c (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
)