Hi,

 this patch modifies Menuconfig so that the comments created are in sync
with those created from Configure. Not the most important one, I guess,
but it makes comparing .config files a bit easier. The base for it is
2.4.4.

--- linux-2.4.4.orig/scripts/Menuconfig Sun Oct  8 18:30:40 2000
+++ linux-2.4.4.xxx/scripts/Menuconfig  Fri May 18 09:35:25 2001
@@ -74,7 +74,10 @@
 # - Implemented new functions: define_tristate(), define_int(),
define_hex(),
 #   define_string(), dep_bool().
 #
-
+# 17 May 2001, Martin Knoblauch, <[EMAIL PROTECTED]>
+# - Fix output of comment strings to .config/autoconfig.h so that they
equal
+#   the commentis from "make [old]config"
+#

 #
 # Change this to TRUE if you prefer all kernel options listed
@@ -1240,7 +1243,7 @@
        }
 
        function mainmenu_option () {
-               comment_is_option=TRUE
+               :
        }
 
        function endmenu () {
@@ -1248,9 +1251,7 @@
        }
 
        function comment () {
-               if [ "$comment_is_option" ]
-               then
-                       comment_is_option=
+
                        echo        >>$CONFIG
                        echo "#"    >>$CONFIG
                        echo "# $1" >>$CONFIG
@@ -1260,7 +1261,6 @@
                        echo "/*"    >>$CONFIG_H
                        echo " * $1" >>$CONFIG_H
                        echo " */"   >>$CONFIG_H
-               fi
        }
 
        echo -n "."

Thanks
Martin
-- 
------------------------------------------------------------------
Martin Knoblauch         |    email:  [EMAIL PROTECTED]
TeraPort GmbH            |    Phone:  +49-89-510857-309
C+ITS                    |    Fax:    +49-89-510857-111
http://www.teraport.de   |    Mobile: +49-170-4904759

--  To unsubscribe, send mail to: [EMAIL PROTECTED] --
--  with the single word "unsubscribe" in the body of the message. --


_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to