git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/diff/gen
diff options
context:
space:
mode:
authormail_redacted_for_web 2020-03-09 15:48:20 +0100
committermail_redacted_for_web 2020-03-09 15:48:20 +0100
commit92d09f370f1ebd0a27abda0a463df953d4b79ef0 (patch)
tree68183db1a5eab962aee90d3a22b81e78e4c58cca /diff/gen
downloaddebian-serial-isos-92d09f370f1ebd0a27abda0a463df953d4b79ef0.tar.bz2
InComm
Diffstat (limited to 'diff/gen')
-rwxr-xr-xdiff/gen15
1 files changed, 15 insertions, 0 deletions
diff --git a/diff/gen b/diff/gen
new file mode 100755
index 0000000..7e46c46
--- /dev/null
+++ b/diff/gen
@@ -0,0 +1,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
+)