From d0c79c47a651f1956294685e5d7800d8244c55c1 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 22 Sep 2010 19:07:05 +0000 Subject: [PATCH] Minor bug fixes related to command-line option -p. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2172 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index fa33ba88a..5755f20d7 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -126,7 +126,7 @@ function process_patch { echo "Signed-off-by: ${SIGNED_OFF_BY}" echo "" specialize_patch - ) >"${patchdir}/$1" + ) >"${patchdir}/$(basename $1)" else # echo "Discarded $(wc -l) lines." true @@ -207,10 +207,11 @@ if [ "${generating_upstream_patch}" = "true" ]; then specialize_patch_options="${specialize_patch_options} -v generating_upstream_patch_defined=1 -v config_tcp_zero_copy_transfer_completion_notification_undefined=1" fi -if [ "${multiple_patches}" = "" ]; then +if [ "${multiple_patches}" = "true" ]; then if [ -e "${patchdir}" ]; then echo "Patch output directory ${patchdir} already exists." fi + mkdir -p "${patchdir}" if [ ! -d "${patchdir}" ]; then echo "Error: ${patchdir} is not a directory." fi