summaryrefslogtreecommitdiff
path: root/util/make_release.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-04-18 16:56:06 -0700
committerNathan Binkert <binkertn@umich.edu>2007-04-18 16:56:06 -0700
commit5825104982d75daee20cd82da3ea2581c31d5292 (patch)
tree330540029b3913b59a07ed18397fd8777eeb65fa /util/make_release.py
parent6f4c1aa47519975366ee108ec5bb0fb1bf4e718d (diff)
downloadgem5-5825104982d75daee20cd82da3ea2581c31d5292.tar.xz
update the stuff that's removed from the SConscripts
since things have moved around a bit --HG-- extra : convert_revision : 79322a65af6140d0c41aed0b381587eb05d72fd9
Diffstat (limited to 'util/make_release.py')
-rwxr-xr-xutil/make_release.py37
1 files 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' ]