[Midnightbsd-cvs] src [7869] trunk/usr.sbin/crashinfo/crashinfo.sh: improve multi line kernel ident parsing

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Sep 14 12:20:45 EDT 2016


Revision: 7869
          http://svnweb.midnightbsd.org/src/?rev=7869
Author:   laffer1
Date:     2016-09-14 12:20:45 -0400 (Wed, 14 Sep 2016)
Log Message:
-----------
improve multi line kernel ident parsing

Modified Paths:
--------------
    trunk/usr.sbin/crashinfo/crashinfo.sh

Property Changed:
----------------
    trunk/usr.sbin/crashinfo/crashinfo.sh

Modified: trunk/usr.sbin/crashinfo/crashinfo.sh
===================================================================
--- trunk/usr.sbin/crashinfo/crashinfo.sh	2016-09-14 16:19:37 UTC (rev 7868)
+++ trunk/usr.sbin/crashinfo/crashinfo.sh	2016-09-14 16:20:45 UTC (rev 7869)
@@ -45,10 +45,11 @@
 		nextline=1
 		next
 	}
-	// {
-		if (nextline) {
+	nextline==1 {
+		if ($0 ~ "^  [A-Za-z ]+: ") {
+			nextline=0
+		} else {
 			print
-			nextline=0
 		}
 	}' $INFO)
 


Property changes on: trunk/usr.sbin/crashinfo/crashinfo.sh
___________________________________________________________________
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list