X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fkernel_patches%2Fscripts%2Fpcpatch;fp=lustre%2Fkernel_patches%2Fscripts%2Fpcpatch;h=0000000000000000000000000000000000000000;hp=fa533859b54c6fb1084e72542b930bd300d9f924;hb=ed61a3b38f4d1c3a054d7c626892840490e99eb9;hpb=3c8f001801c46d1756316b1e80c18b5a3e4f5e23 diff --git a/lustre/kernel_patches/scripts/pcpatch b/lustre/kernel_patches/scripts/pcpatch deleted file mode 100755 index fa53385..0000000 --- a/lustre/kernel_patches/scripts/pcpatch +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -. patchfns >/dev/null || . /usr/lib/patch-scripts/patchfns >/dev/null || { \ - echo "Impossible to find my library 'patchfns'." - echo "Check your install, or go to the right directory" - exit 1 -} - -usage() -{ - echo "pcpatch: recreate the pc file from patches/{patchname}.patch" - exit 1 -} - -doit() -{ - echo $* 1>&2 - $* || { - echo oops - exit 1 - } -} - -if [ $# != 1 -o "$1" = "help" ] -then - usage -fi -PATCH=$1 -PATCH_NAME=$(stripit $PATCH) -PC=$P/pc/$PATCH_NAME.pc - -if [ ! -e $P/patches/$PATCH_NAME.patch ] -then - echo "$P/patches/$PATCH_NAME.patch does not exist" - exit 1 -fi - -if is_applied "$PATCH" -then - echo $PATCH is applied! - exit 1 -fi - -touched-by-patch $P/patches/$PATCH_NAME.patch > $PC -echo Recreated $PC