Only extract the kernel tree when it's needed, i.e. for the 2.6.26.* kernels.
[mirror/scst/.git] / qla2x00t / generate-in-tree-patches
index 0f69cb0..660908d 100755 (executable)
@@ -12,6 +12,10 @@ if [ "${1#2.6.26}" = "$1" ]; then
   exit 0
 fi
 
+if [ ! -e qla2xxx-orig/$1 ]; then
+  ./extract-qla2xxx-orig "$1"
+fi
+
 mkdir -p in-tree-patches/"${kernel_version}"
 
 for f in qla2xxx-orig/"${kernel_version}"/*