Whamcloud - gitweb
- make HEAD from b_post_cmd3
[fs/lustre-release.git] / lustre / kernel_patches / scripts / rolled-up-patch
diff --git a/lustre/kernel_patches/scripts/rolled-up-patch b/lustre/kernel_patches/scripts/rolled-up-patch
new file mode 100755 (executable)
index 0000000..52676dc
--- /dev/null
@@ -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