Whamcloud - gitweb
LU-1187 tests: Add DNE test cases in sanity.
[fs/lustre-release.git] / lustre / kernel_patches / scripts / toppatch
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: toppatch"
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                 echo $TOP_PATCH
26         fi
27 fi