Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc If MKREPRO=yes, make the tags file refer to /usr/src
details: https://anonhg.NetBSD.org/src/rev/0139ee79024d
branches: trunk
changeset: 326121:0139ee79024d
user: apb <apb%NetBSD.org@localhost>
date: Sun Jan 19 11:36:45 2014 +0000
description:
If MKREPRO=yes, make the tags file refer to /usr/src
instead of referring to the actual source directory ${NETBSDSRC}.
diffstat:
lib/libc/Makefile | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 457f10c788c8 -r 0139ee79024d lib/libc/Makefile
--- a/lib/libc/Makefile Sun Jan 19 10:30:19 2014 +0000
+++ b/lib/libc/Makefile Sun Jan 19 11:36:45 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.162 2014/01/18 01:08:56 joerg Exp $
+# $NetBSD: Makefile,v 1.163 2014/01/19 11:36:45 apb Exp $
# @(#)Makefile 8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
@@ -130,13 +130,24 @@
NLS= C.msg Pig.msg ca.msg cs.msg de.msg es.msg fi.msg fr.msg nl.msg \
no.msg pl.msg sk.msg sv.msg
+.if ${MKREPRO:Uno} == "yes"
+REGEX_SPECIALS=[][)(^$$.?*\\;]
+MKREPRO_SED= -e 's;${NETBSDSRCDIR:C/${REGEX_SPECIALS}/\\\\&/g};/usr/src;'
+.endif
+
realall: tags
tags: ${SRCS}
${_MKTARGET_CREATE}
- -${TOOL_CTAGS} -w ${.ALLSRC:M*.c}
+ -${TOOL_CTAGS} -f ${.TARGET}.tmp -w ${.ALLSRC:M*.c}
-egrep "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" /dev/null ${.ALLSRC:M*.S} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
- >> ${.TARGET}; sort -o ${.TARGET} ${.TARGET}
+ >> ${.TARGET}.tmp
+.if ${MKREPRO:Uno} == "yes"
+ sed ${MKREPRO_SED} <${.TARGET}.tmp | sort -o ${.TARGET}
+.else
+ sort -o ${.TARGET} ${.TARGET}.tmp
+.endif
+ rm -f ${.TARGET}.tmp
FILES= tags
FILESNAME= libc.tags
Home |
Main Index |
Thread Index |
Old Index