Whamcloud - gitweb
- tagging RC_CURRENT
[fs/lustre-release.git] / lustre / kernel_patches / scripts / inpatch
1 #!/bin/sh
2
3 . patchfns >/dev/null || . /usr/lib/patch-scripts/patchfns >/dev/null || { \
4         echo "Impossible to find my library 'patchfns'."
5         echo "Check your install, or go to the right directory"
6         exit 1
7 }
8
9 usage()
10 {
11         echo "Usage: inpatch"
12         exit 1
13 }
14
15 if [ $# != 0 ]
16 then
17         usage
18 fi
19
20 if [ -e $DB ]
21 then
22         TOP_PATCH=$(top_patch)
23         if [ x$TOP_PATCH != x ]
24         then
25                 cat $P/pc/$TOP_PATCH.pc
26         fi
27 fi