From: Tim Yamin Date: Tue, 6 Dec 2005 20:46:08 +0000 (+0000) Subject: Fix #100637. X-Git-Tag: v3.4.10.902~418 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d0ce405704ceb3ea53e8063c7be5781a4aa5310a;p=genkernel.git Fix #100637. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@334 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/gen_bootloader_grub.awk b/gen_bootloader_grub.awk index 9816932..435e936 100644 --- a/gen_bootloader_grub.awk +++ b/gen_bootloader_grub.awk @@ -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";