linux/debian/bin/check-patches.sh
Bastian Blank a377ecf479 debian/bin/check-patches.sh: Fix.
svn path=/dists/trunk/linux-2.6/; revision=7423
2006-09-14 12:15:17 +00:00

14 lines
391 B
Bash
Executable file

#!/bin/sh -e
TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" EXIT
awk '{if (NF >= 2) print "debian/patches/" $2}' debian/patches/series/* | sort -u > $TMPDIR/used
find debian/patches ! -path '*/series*' -type f -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