This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Makefile: TAGS rule
- From: Thomas Schwinge <tschwinge at gnu dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 9 May 2006 19:16:59 -0400
- Subject: Makefile: TAGS rule
Hello!
Please apply the following patch to make the `TAGS' rule work even when
using GNU Make 3.81 and / or a ~/.cvsrc containing `cvs -q'.
2006-05-10 Thomas Schwinge <tschwinge@gnu.org>
* Makefile (TAGS rule): Reorder commands.
* scripts/list-sources.sh <CVS>: Pass `-f' to cvs.
Index: Makefile
===================================================================
RCS file: /cvs/glibc/libc/Makefile,v
retrieving revision 1.254
diff -u -p -r1.254 Makefile
--- Makefile 1 Mar 2006 10:35:45 -0000 1.254
+++ Makefile 9 May 2006 23:09:46 -0000
@@ -336,8 +336,8 @@ endif
.PHONY: TAGS
TAGS:
- scripts/list-sources.sh | sed -n '/Makefile/p;\
- $(foreach S,[chsSyl] cxx sh bash pl,\
+ scripts/list-sources.sh \
+ | sed -n '/Makefile/p;$(foreach S,[chsSyl] cxx sh bash pl,\
$(subst .,\.,/.$S\(.in\)*$$/p;))' \
| $(ETAGS) -o $@ -
Index: scripts/list-sources.sh
===================================================================
RCS file: /cvs/glibc/libc/scripts/list-sources.sh,v
retrieving revision 1.1
diff -u -p -r1.1 list-sources.sh
--- scripts/list-sources.sh 8 Jan 2006 06:44:06 -0000 1.1
+++ scripts/list-sources.sh 9 May 2006 23:09:46 -0000
@@ -11,7 +11,9 @@ esac
if [ -r CVS/Entries ]; then
- ${CVS:-cvs} status 2>&1 | ${AWK:-awk} '
+ # `-f' is needed for `Examining ...' to show up at all if you have
+ # `cvs -q' in ~/.cvsrc.
+ ${CVS:-cvs} -f status 2>&1 | ${AWK:-awk} '
NF >= 2 && $(NF - 1) == "Examining" { dir = $NF }
$1 == "File:" { print (dir == ".") ? $2 : (dir "/" $2) }'
exit $?
Regards,
Thomas