Whamcloud - gitweb
- bring in akpm's patch management scripts and a first cut at
[fs/lustre-release.git] / lustre / kernel_patches / scripts / inpatch
diff --git a/lustre/kernel_patches/scripts/inpatch b/lustre/kernel_patches/scripts/inpatch
new file mode 100755 (executable)
index 0000000..edb2c20
--- /dev/null
@@ -0,0 +1,27 @@
+#!/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: inpatch"
+       exit 1
+}
+
+if [ $# != 0 ]
+then
+       usage
+fi
+
+if [ -e $DB ]
+then
+       TOP_PATCH=$(top_patch)
+       if [ x$TOP_PATCH != x ]
+       then
+               cat $P/pc/$TOP_PATCH.pc
+       fi
+fi