Whamcloud - gitweb
- tagging RC_CURRENT
[fs/lustre-release.git] / lustre / kernel_patches / scripts / join-patch
1 #!/bin/sh
2
3 usage()
4 {
5         echo "Usage: join-patch patchname"
6         exit 1
7 }
8
9 if [ $# -ne 1 ]
10 then
11         usage
12 fi
13
14 PATCHNAME=$(stripit $1)
15
16 if ! can_apply $PATCHNAME
17 then
18         echo Patch $PATCHNAME does not apply
19         exit 1
20 fi
21
22 pcpatch $PATCHNAME
23 for i in $(cat $P/pc/$PATCHNAME.pc)
24 do
25         fpatch $i
26 done
27
28 patch -p1 -i "$P/patches/$PATCHNAME.patch" -f