From e82f9ced0e2d2001a6e6c1c684f43a3faef8c7c7 Mon Sep 17 00:00:00 2001 From: rscott Date: Wed, 19 Apr 2006 16:06:11 -0700 Subject: 6415458 xref.mk should be more exclusionary --- usr/src/tools/scripts/xref.mk | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'usr/src') diff --git a/usr/src/tools/scripts/xref.mk b/usr/src/tools/scripts/xref.mk index 080492e579..6e9d7c0a2f 100644 --- a/usr/src/tools/scripts/xref.mk +++ b/usr/src/tools/scripts/xref.mk @@ -1,13 +1,12 @@ # -# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # CDDL HEADER START # # The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. @@ -74,7 +73,7 @@ XRINCS = $(XRINCDIRS:%=-I%) $(HDRDIR:%=-I%) $(CPPFLAGS) include $(XRMAKEFILE) -XRADDDEF = *.[Ccshlxy] Makefile* *.il* *.cc *.adb llib-* *.xml *.dtd.* +XRADDDEF = *.[Ccshlxy] Makefile* *.il* *.cc llib-* *.xml *.dtd.* XRDELDEF = *.ln XRFINDADD = $(XRADDDEF:%=-o -name '%') $(XRADD:%=-o -name '%') XRFINDDEL = $(XRDELDEF:%=-a ! -name '%') $(XRDEL:%=-a ! -name '%') @@ -111,7 +110,7 @@ xref.files: $(TOUCH) xref.flg $(FIND) $(XRDIRS) `$(CAT) xref.flg` -name SCCS -prune \ -o -type d \( -name '.del-*' $(XRFINDPRUNE) \) -prune \ - -o -type f \( -name '' $(XRFINDADD) $(XRFINDDEL) \) -print |\ + -o -type f \( \( -name '' $(XRFINDADD) \) $(XRFINDDEL) \) -print |\ $(PERL) -ne 's:^\./::; next if ($$seen{$$_}++); print' > xref.tmp > xref.files -$(GREP) -v Makefile xref.tmp >> xref.files -- cgit v1.2.3