Commit 1fdddede authored by Graydon Hoare's avatar Graydon Hoare

Add snap-stageN targets.

parent b64098e5
snap: snap-stage1: stage1/rustc stage1/glue.o stage1/$(CFG_STDLIB)
$(CFG_SRC_DIR)src/etc/ $(CFG_SRC_DIR)src/etc/ stage1
\ No newline at end of file
snap-stage2: stage2/rustc stage2/glue.o stage2/$(CFG_STDLIB)
$(CFG_SRC_DIR)src/etc/ stage2
snap-stage3: stage3/rustc stage3/glue.o stage3/$(CFG_STDLIB)
$(CFG_SRC_DIR)src/etc/ stage3
#!/usr/bin/env python #!/usr/bin/env python
import snapshot import snapshot, sys
print(snapshot.make_snapshot()) print(snapshot.make_snapshot(sys.argv[1]))
...@@ -102,7 +102,7 @@ def hash_file(x): ...@@ -102,7 +102,7 @@ def hash_file(x):
return scrub(h.hexdigest()) return scrub(h.hexdigest())
def make_snapshot(): def make_snapshot(stage):
kernel = get_kernel() kernel = get_kernel()
platform = get_platform() platform = get_platform()
rev = local_rev_short_sha() rev = local_rev_short_sha()
...@@ -112,7 +112,7 @@ def make_snapshot(): ...@@ -112,7 +112,7 @@ def make_snapshot():
tar =, "w:bz2") tar =, "w:bz2")
for name in snapshot_files[kernel]: for name in snapshot_files[kernel]:
tar.add(os.path.join("stage2", name), tar.add(os.path.join(stage, name),
"rust-stage0/" + name) "rust-stage0/" + name)
tar.close() tar.close()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment