Module Name:    src
Committed By:   dyoung
Date:           Wed May 20 03:36:36 UTC 2009

Modified Files:
        src/sys/arch/xen: Makefile

Log Message:
If TOOL_AWK or TOOL_SED are undefined, then use awk or sed,
respectively.

Use ${FINDCOMM} to avoid too-long arguments lists.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/xen/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/xen/Makefile
diff -u src/sys/arch/xen/Makefile:1.5 src/sys/arch/xen/Makefile:1.6
--- src/sys/arch/xen/Makefile:1.5	Sat Oct 25 22:27:38 2008
+++ src/sys/arch/xen/Makefile	Wed May 20 03:36:36 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.5 2008/10/25 22:27:38 apb Exp $
+#	$NetBSD: Makefile,v 1.6 2009/05/20 03:36:36 dyoung Exp $
 
 # Makefile for xen tags file
 
@@ -10,9 +10,9 @@
 
 TXEN=	${SYSDIR}/arch/xen/tags
 
-SXEN!=	${TOOL_AWK} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
+SXEN!=	${TOOL_AWK:Uawk} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
 		${SYSDIR}/arch/xen/conf/files.xen
-AXEN!=	${TOOL_AWK} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
+AXEN!=	${TOOL_AWK:Uawk} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
 		${SYSDIR}/arch/xen/conf/files.xen
 AXEN+=	${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
 
@@ -20,10 +20,11 @@
 DXEN=	xen ${XEN_MACHINE_ARCHS} include
 
 tags:
-	rm -f ${TXEN}
-	-echo ${SXEN} ${COMM} | xargs ctags -wadtf ${TXEN}
+	-rm -f ${TXEN}
+	-echo ${SXEN} | xargs ctags -wadtf ${TXEN}
+	${FINDCOMM} | xargs ctags -wadtf ${TXEN}
 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
-	    ${TOOL_SED} -e \
+	    ${TOOL_SED:Used} -e \
 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
 		>> ${TXEN}
 	sort -o ${TXEN} ${TXEN}

Reply via email to