[Pkg-xen-changes] r644 - trunk/xen-3/debian/bin
Bastian Blank
waldi at alioth.debian.org
Tue May 26 19:25:09 UTC 2009
Author: waldi
Date: Tue May 26 19:25:08 2009
New Revision: 644
Log:
debian/bin/check-patches.sh: Add.
Added:
trunk/xen-3/debian/bin/check-patches.sh (contents, props changed)
Added: trunk/xen-3/debian/bin/check-patches.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/xen-3/debian/bin/check-patches.sh Tue May 26 19:25:08 2009 (r644)
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+TMPDIR=$(mktemp -d)
+trap "rm -rf $TMPDIR" EXIT
+grep -v "^#" debian/patches/series | awk '{if (NF == 1) print "debian/patches/" $1}' | sort -u > $TMPDIR/used
+find debian/patches -type f -name "*.diff" -printf "%p\n" | sort > $TMPDIR/avail
+echo "Used patches"
+echo "=============="
+cat $TMPDIR/used
+echo
+echo "Unused patches"
+echo "=============="
+fgrep -v -f $TMPDIR/used $TMPDIR/avail
More information about the Pkg-xen-changes
mailing list