# HG changeset patch # User kamg # Date 1208297493 14400 # Node ID 34935c25a52d50147e7a8b576c46e0e59333a0e0 # Parent ba764ed4b6f20be1b89ee53acb561fccbcd6ced5# Parent 7c5dac90daef65b41fa42bf2c2fe2369db42bb7c Merge diff -r ba764ed4b6f2 -r 34935c25a52d make/linux/makefiles/cscope.make --- a/make/linux/makefiles/cscope.make Sun Apr 13 17:43:42 2008 -0400 +++ b/make/linux/makefiles/cscope.make Tue Apr 15 18:11:33 2008 -0400 @@ -38,6 +38,7 @@ NAWK = awk RM = rm -f +HG = hg CS_TOP = ../.. CSDIRS = $(CS_TOP)/src $(CS_TOP)/build @@ -140,14 +141,17 @@ # .nametable.files and .nametable.files.tmp are used to determine if any files # were added to/deleted from/renamed in the workspace. If not, then there's -# normally no need to run find. To force a 'find': gmake nametable.clean. +# normally no need to rebuild the cscope database. To force a rebuild of +# the cscope database: gmake nametable.clean. .nametable.files: .nametable.files.tmp - cmp -s $@ $< || cp $< $@ + ( cmp -s $@ $< ) || ( cp $< $@ ) + -$(RM) $< -.nametable.files.tmp: $(CS_TOP)/Codemgr_wsdata/nametable - $(NAWK) \ - '{ if (sub("( [a-z0-9]{2,8}){4}$$", "")) print $$0; }' $< > $@ - +# `hg status' is slightly faster than `hg fstatus'. Both are +# quite a bit slower on an NFS mounted file system, so this is +# really geared towards repos on local file systems. +.nametable.files.tmp: + -$(HG) fstatus -acmn > $@ nametable.clean: -$(RM) .nametable.files .nametable.files.tmp diff -r ba764ed4b6f2 -r 34935c25a52d make/solaris/makefiles/cscope.make --- a/make/solaris/makefiles/cscope.make Sun Apr 13 17:43:42 2008 -0400 +++ b/make/solaris/makefiles/cscope.make Tue Apr 15 18:11:33 2008 -0400 @@ -38,6 +38,7 @@ NAWK = /usr/xpg4/bin/awk RM = rm -f +HG = hg CS_TOP = ../.. CSDIRS = $(CS_TOP)/src $(CS_TOP)/make @@ -141,13 +142,17 @@ # .nametable.files and .nametable.files.tmp are used to determine if any files # were added to/deleted from/renamed in the workspace. If not, then there's -# normally no need to run find. To force a 'find': gmake nametable.clean. +# normally no need to rebuild the cscope database. To force a rebuild of +# the cscope database: gmake nametable.clean. .nametable.files: .nametable.files.tmp - cmp -s $@ $< || cp $< $@ + ( cmp -s $@ $< ) || ( cp $< $@ ) + -$(RM) $< -.nametable.files.tmp: $(CS_TOP)/Codemgr_wsdata/nametable - $(NAWK) \ - '{ if (sub("( [a-z0-9]{2,8}){4}$$", "")) print $$0; }' $< > $@ +# `hg status' is slightly faster than `hg fstatus'. Both are +# quite a bit slower on an NFS mounted file system, so this is +# really geared towards repos on local file systems. +.nametable.files.tmp: + -$(HG) fstatus -acmn > $@ nametable.clean: -$(RM) .nametable.files .nametable.files.tmp