]> git.donarmstrong.com Git - bin.git/commitdiff
add buildd script
authorDon Armstrong <don@donarmstrong.com>
Thu, 23 Feb 2012 03:21:52 +0000 (03:21 +0000)
committerDon Armstrong <don@donarmstrong.com>
Thu, 23 Feb 2012 03:21:52 +0000 (03:21 +0000)
buildd_script [new file with mode: 0755]

diff --git a/buildd_script b/buildd_script
new file mode 100755 (executable)
index 0000000..c56bb2a
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Stolen and modified from http://wiki.debian.org/Buildd/BuildLogs
+
+
+TMPDIR=$(mktemp -d)
+egrep -v '^Fcc:' "$1" | sed -e '8,/\.changes\:$/d' -e '/^\*/,$d' > "${TMPDIR}"/changes
+cat "${TMPDIR}"/changes > "$1"
+rm -f "${TMPDIR}"/changes
+rmdir "${TMPDIR}"
\ No newline at end of file