Whamcloud - gitweb
Revert "b=19325 adjust waiting extent locks during 1st enqueue"
[fs/lustre-release.git] / lustre / kernel_patches / scripts / refpatch
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: refpatch"
12         exit 1
13 }
14
15 doit()
16 {
17         echo $* 1>&2
18         $* || {
19                 echo oops
20                 exit 1 
21         }
22 }
23
24 if [ $# != 0 ]
25 then
26         usage
27 fi
28
29 TOP_PATCH=$(top_patch)
30 mpatch $* $(top_patch)
31 sum-series applied-patch
32 echo "Refreshed $TOP_PATCH"