svn commit: r209240 - head

Rafal Jaworowski raj at FreeBSD.org
Wed Jun 16 16:52:36 UTC 2010


Author: raj
Date: Wed Jun 16 16:52:35 2010
New Revision: 209240
URL: http://svn.freebsd.org/changeset/base/209240

Log:
  Use awk alone for extracting FDT_DTS_FILE instead of grep/cut, which is
  simpler and more robust.
  
  Submitted by:	Andrzej Tobola

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Wed Jun 16 16:39:01 2010	(r209239)
+++ head/Makefile.inc1	Wed Jun 16 16:52:35 2010	(r209240)
@@ -1458,8 +1458,8 @@ _xi-links:
 DTBOUTPUTPATH= ${KRNLOBJDIR}/${KERNCONF}/
 
 .if !defined(FDT_DTS_FILE) || empty(FDT_DTS_FILE)
-FDT_DTS_FILE!=	 grep "^makeoptions[[:space:]]\+FDT_DTS_FILE" \
-	${KERNCONFDIR}/${KERNCONF} 2> /dev/null | cut -d= -f2
+FDT_DTS_FILE!= awk '/^makeoptions[[:space:]]+FDT_DTS_FILE/ {FS="=|[ \t]+"; print $$3}' \
+	${KERNCONFDIR}/${KERNCONF}
 .endif
 
 .endif


More information about the svn-src-head mailing list