From: Jan Nieuwenhuizen Date: Wed, 21 Jul 2004 00:17:19 +0000 (+0000) Subject: * SConstruct: Use only code files for TAGS. X-Git-Tag: release/2.3.8~11 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=ab7dd8b4a5fc46c6989319254ed20cb21bd13ae3;p=lilypond.git * SConstruct: Use only code files for TAGS. * SConstruct[GO_FAST_BUTTON]: implement tips from Andreas Roach. This brings SCons run-time on up-to-date tree down from 48s with only checksums, to 34s without 2day checksums, to 14s (make needs 4 seconds). (subdirs)[GO_FAST_BUTTON]: Try to read all subdirs only when necessary. --- diff --git a/ChangeLog b/ChangeLog index 5380b84289..49171b8d94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2004-07-21 Jan Nieuwenhuizen + * SConstruct: Use only code files for TAGS. + * SConstruct[GO_FAST_BUTTON]: implement tips from Andreas Roach. This brings SCons run-time on up-to-date tree down from 48s with only checksums, to 34s without 2day checksums, to 14s (make needs diff --git a/SConstruct b/SConstruct index daa7560ee1..88406c4906 100644 --- a/SConstruct +++ b/SConstruct @@ -730,7 +730,7 @@ if GO_FAST_BUTTON\ and 'web' not in COMMAND_LINE_TARGETS\ and 'install' not in COMMAND_LINE_TARGETS\ and 'clean' not in COMMAND_LINE_TARGETS: - subdirs = ['lily','flower', 'mf'] + subdirs = ['lily', 'lily/include', 'flower', 'flower/include', 'mf'] else: subdirs = flatten (cvs_dirs ('.'), []) readme_files = ['AUTHORS', 'README', 'INSTALL', 'NEWS'] @@ -801,11 +801,12 @@ env.Alias ('web', www_ball) #### tags env.Append ( - ETAGSFLAGS = ["""--regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'""", - """--regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/'"""]) -# filter-out some files? -env.Command ('TAGS', src_files, 'etags $ETAGSFLAGS $SOURCES') - + ETAGSFLAGS = """--regex='{c++}/^LY_DEFINE *(\([^,]+\)/\\1/' \ + --regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\\1/'""") +code_ext = ['.cc', '.hh', '.scm', '.tcc',] +env.Command ('TAGS', filter (lambda x: os.path.splitext (x)[1] in code_ext, + src_files), + 'etags $ETAGSFLAGS $SOURCES') # Note: SConscripts are only needed in directories where something needs # to be done, building or installing