move sed expr. into function
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Fri, 10 Dec 2010 19:59:31 +0000 (14:59 -0500)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Fri, 10 Dec 2010 19:59:31 +0000 (14:59 -0500)
kernel-2.6.spec

index 24fb21d..8b132ee 100644 (file)
@@ -1026,11 +1026,6 @@ cd ..
 ###
 %build
 
-#### Planet-Lab ####
-# -Werror breaks F14 builds
-sed -i -e "s:-Wno-array-bounds -Werror:-Wno-array-bounds:g" Makefile
-#### Planet-Lab ####
-
 %if %{with_sparse}
 %define sparse_mflags  C=1
 %endif
@@ -1082,6 +1077,11 @@ BuildKernel() {
     %endif
     %endif
 
+    #### Planet-Lab ####
+    # -Werror breaks F14 builds
+    sed -i -e "s:-Wno-array-bounds -Werror:-Wno-array-bounds:g" Makefile
+    #### Planet-Lab ####
+
     # and now to start the build process
 
     make -s mrproper