linux/debian/bin/check-patches.sh
Bastian Blank a27da8be62 Merge /dists/sid/linux-2.6.
svn path=/dists/trunk/linux-2.6/; revision=6356
2006-03-31 17:13:35 +00:00

14 lines
365 B
Bash
Executable file

#!/bin/sh -e
TMPDIR=$(mktemp -d)
trap "rm -rf $TMPDIR" EXIT
awk '{if (NF >= 2) print $2}' debian/patches/series/* | sort -u > $TMPDIR/used
find debian/patches -maxdepth 1 -type f -printf "%f\n" | sort > $TMPDIR/avail
echo "Used patches"
echo "=============="
cat $TMPDIR/used
echo
echo "Unused patches"
echo "=============="
fgrep -v -f $TMPDIR/used $TMPDIR/avail