Whamcloud - gitweb
b=16437
[fs/lustre-release.git] / lustre / kernel_patches / scripts / prep-patch
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 if [ $# -ne 1 ]
10 then
11         echo "Usage prep-patch patchname"
12         exit 1
13 fi
14
15 PATCHNAME=$(stripit $1)
16
17 xcb -s 2 < $P/patches/$PATCHNAME.patch
18 head -2 $P/txt/$PATCHNAME.txt | tail -1 | tr -d '\n' | xcb -s 1