Fix #100637.
authorTim Yamin <plasmaroo@gentoo.org>
Tue, 6 Dec 2005 20:46:08 +0000 (20:46 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Tue, 6 Dec 2005 20:46:08 +0000 (20:46 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@334 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_bootloader_grub.awk

index 981693263913e10fd5d816a2a6a5e3a88f1278af..435e936071daae20188da54c492c835c30eb3256 100644 (file)
@@ -2,7 +2,7 @@ BEGIN { RS="\n"; FS=""; OFS=""; ORS=""; state="0"; }
 {
 if(state == "0")
 {
-       if (match($0, /^title=/))
+       if (match($0, /^title=/) || match($0, /^title */))
        {
                state = "1";
                ORIG = ORIG $0 "\n";
@@ -47,7 +47,7 @@ if(state == "1")
                                next;
                        }
 
-                       if(!match($0, /^title=/))
+                       if(!(match($0, /^title=/) || match($0, /^title */) ))
                        {       
                                i = 0;
                                commentLookahead = "";
@@ -64,7 +64,7 @@ if(state == "1")
                        }
                }
        }
-       if(have_k == "1" && (match($0, /^title=/) || NR == LIMIT))
+       if(have_k == "1" && ((match($0, /^title=/) || match($0, /^title */)) || NR == LIMIT))
        {
                state = "2";
                print extraA "title=Gentoo Linux (" KV ")\n";