Made sure that the qla2x00t patches are only included in the output of
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 15 Oct 2009 07:09:40 +0000 (07:09 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 15 Oct 2009 07:09:40 +0000 (07:09 +0000)
scripts/generate-kernel-patch for kernel version 2.6.26. As a result,
during the nightly build the qla2x00t code will only be checked with
checkpatch and sparse for the 2.6.26 kernel.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1216 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/generate-in-tree-patches

index 8b68424..0f69cb0 100755 (executable)
@@ -7,6 +7,11 @@ if [ "$1" = "" ]; then
   exit 1
 fi
 
+if [ "${1#2.6.26}" = "$1" ]; then
+  # Exit silently for other kernel versions than 2.6.26.x.
+  exit 0
+fi
+
 mkdir -p in-tree-patches/"${kernel_version}"
 
 for f in qla2xxx-orig/"${kernel_version}"/*