diff options
author | rscott <none@none> | 2006-04-19 16:06:11 -0700 |
---|---|---|
committer | rscott <none@none> | 2006-04-19 16:06:11 -0700 |
commit | e82f9ced0e2d2001a6e6c1c684f43a3faef8c7c7 (patch) | |
tree | e07060e95a8df23528b0a564d99d04fcd0cea32b /usr/src | |
parent | fe6f6fb8972b444b3801333f8009837c833115ef (diff) | |
download | illumos-joyent-e82f9ced0e2d2001a6e6c1c684f43a3faef8c7c7.tar.gz |
6415458 xref.mk should be more exclusionary
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/tools/scripts/xref.mk | 11 |
1 files changed, 5 insertions, 6 deletions
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 |