From 5825104982d75daee20cd82da3ea2581c31d5292 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 18 Apr 2007 16:56:06 -0700 Subject: [PATCH] update the stuff that's removed from the SConscripts since things have moved around a bit --HG-- extra : convert_revision : 79322a65af6140d0c41aed0b381587eb05d72fd9 --- util/make_release.py | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/util/make_release.py b/util/make_release.py index 8d69614dc..7362bd77c 100755 --- a/util/make_release.py +++ b/util/make_release.py @@ -133,30 +133,23 @@ rmtree(release_dir, 'src/dev/i8*') remove(release_dir, 'util/chgcopyright') remove(release_dir, 'util/make_release.py') -# fix up the SConscript to deal with files we've removed -mem_expr = re.compile('.*mem/cache/(tags/split|prefetch/(ghb|stride)).*') -inscript = file(joinpath(release_dir, 'src', 'SConscript'), 'r').readlines() -outscript = file(joinpath(release_dir, 'src', 'SConscript'), 'w') -for line in inscript: - if mem_expr.match(line): - continue - - outscript.write(line) -outscript.close() +def remove_sources(regex, subdir): + script = joinpath(release_dir, subdir, 'SConscript') + if isinstance(regex, str): + regex = re.compile(regex) + inscript = file(script, 'r').readlines() + outscript = file(script, 'w') + for line in inscript: + if regex.match(line): + continue + + outscript.write(line) + outscript.close() # fix up the SConscript to deal with files we've removed -mem_expr = re.compile('.*i8254xGBe.*') -inscript = file(joinpath(release_dir, 'src', 'dev', 'SConscript'), 'r').readlines() -outscript = file(joinpath(release_dir, 'src', 'dev', 'SConscript'), 'w') -for line in inscript: - if mem_expr.match(line): - continue - - outscript.write(line) -outscript.close() - - - +remove_sources(r'.*split.*\.cc', 'src/mem/cache/tags') +remove_sources(r'.*(ghb|stride)_prefetcher\.cc', 'src/mem/cache/prefetch') +remove_sources(r'.*i8254xGBe.*', 'src/dev') benches = [ 'bzip2', 'eon', 'gzip', 'mcf', 'parser', 'perlbmk', 'twolf', 'vortex' ] -- 2.30.2