From 2fd1a2ea1fa5584d278f4133aa0f15faa42be8a5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 5 Aug 2010 07:55:26 +0000 Subject: [PATCH] Don't complain when the fcst patch series file is missing. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1935 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 30d10a4da..85bc33306 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -381,10 +381,12 @@ done # Directory drivers/scst/fcst/ { - for f in $(grep -v '^#' "${fcst_patch_series}") - do - cat "fcst/linux-patches/${f}" - done + if [ -e "${fcst_patch_series}" ]; then + for f in $(grep -v '^#' "${fcst_patch_series}") + do + cat "fcst/linux-patches/${f}" + done + fi add_file "fcst/Makefile_in-tree" \ "drivers/scst/fcst/Makefile"