X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fkernel_patches%2Fscripts%2Frolled-up-patch;fp=lustre%2Fkernel_patches%2Fscripts%2Frolled-up-patch;h=52676dcafb3048e395258e44187f828fbf309eb6;hb=53e3148077f1d201a230ce5b5d0c66fd12632e53;hp=0000000000000000000000000000000000000000;hpb=b3baf7d24fcfe5f0921f52a6bf72d0b71a4d2154;p=fs%2Flustre-release.git diff --git a/lustre/kernel_patches/scripts/rolled-up-patch b/lustre/kernel_patches/scripts/rolled-up-patch new file mode 100755 index 0000000..52676dc --- /dev/null +++ b/lustre/kernel_patches/scripts/rolled-up-patch @@ -0,0 +1,30 @@ +#!/bin/sh + +. patchfns >/dev/null || . /usr/lib/patch-scripts/patchfns >/dev/null || { \ + echo "Impossible to find my library 'patchfns'." + echo "Check your install, or go to the right directory" + exit 1 +} + +usage() +{ + echo "Usage: rolled-up-patch" + exit 1 +} + +if [ $# != 0 ] +then + usage +fi + +RUP=$(mktemp /tmp/rup-XXXXXX) +rm -f $RUP + +for i in $(cat applied-patches) +do + patch_name=$(stripit $i) + cat $P/pc/$patch_name.pc +done | sort | uniq > $RUP + +kdiff $(cat $RUP) +rm -f $RUP