Author: glen                         Date: Tue Jan 29 14:10:23 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- skip regen if spec produced config is same as previous

---- Files affected:
SPECS:
   kernel-vanilla.spec (1.73 -> 1.74) 

---- Diffs:

================================================================
Index: SPECS/kernel-vanilla.spec
diff -u SPECS/kernel-vanilla.spec:1.73 SPECS/kernel-vanilla.spec:1.74
--- SPECS/kernel-vanilla.spec:1.73      Tue Jan 29 15:00:47 2008
+++ SPECS/kernel-vanilla.spec   Tue Jan 29 15:10:18 2008
@@ -511,14 +511,16 @@
 rm -rf $KERNEL_INSTALL_DIR
 
 # build config
-if [ ! -f arch/%{target_arch_dir}/defconfig.conf ]; then
-       pykconfig > .defconfig.tmp.conf
-       mv .defconfig.tmp.conf arch/%{target_arch_dir}/defconfig.conf
+pykconfig > .defconfig.tmp.conf
+o=arch/%{target_arch_dir}/defconfig.conf
+if [ -f $o ] && cmp -s .defconfig.tmp.conf $o; then
+       rm -f .defconfig.tmp.conf
+else
+       mv .defconfig.tmp.conf $o
 fi
 chmod +x scripts/kernel-config.py
 %{__make} %{MakeOpts} pykconfig
 
-
 # build kernel
 %{__make} %{MakeOpts} \
        RCS_FIND_IGNORE='-name build-done -prune -o'
@@ -831,6 +833,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.74  2008-01-29 14:10:18  glen
+- skip regen if spec produced config is same as previous
+
 Revision 1.73  2008-01-29 14:00:47  glen
 - integrate the python config into kernel Makefile
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kernel-vanilla.spec?r1=1.73&r2=1.74&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to