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
This commit is contained in:
Bart Van Assche
2010-09-22 19:07:05 +00:00
parent 780d8b439c
commit d0c79c47a6
+3 -2
View File
@@ -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