diff options
| author | Graydon Hoare <[email protected]> | 2011-05-12 12:56:15 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-12 13:08:57 -0700 |
| commit | 1fdddede227031b4ea1df98da7eb3e2fcc8c7d87 (patch) | |
| tree | c00f88cee7bc1424ad5e9245a9a1e93a8cabe0f0 /src | |
| parent | Register new snapshots for incompatible-syntax transition. (diff) | |
| download | rust-1fdddede227031b4ea1df98da7eb3e2fcc8c7d87.tar.xz rust-1fdddede227031b4ea1df98da7eb3e2fcc8c7d87.zip | |
Add snap-stageN targets.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/etc/make-snapshot.py | 4 | ||||
| -rw-r--r-- | src/etc/snapshot.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/make-snapshot.py b/src/etc/make-snapshot.py index d02c0948..d46500cd 100755 --- a/src/etc/make-snapshot.py +++ b/src/etc/make-snapshot.py @@ -1,4 +1,4 @@ #!/usr/bin/env python -import snapshot -print(snapshot.make_snapshot()) +import snapshot, sys +print(snapshot.make_snapshot(sys.argv[1])) diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py index 8eaa3791..35bbc3ef 100644 --- a/src/etc/snapshot.py +++ b/src/etc/snapshot.py @@ -102,7 +102,7 @@ def hash_file(x): return scrub(h.hexdigest()) -def make_snapshot(): +def make_snapshot(stage): kernel = get_kernel() platform = get_platform() rev = local_rev_short_sha() @@ -112,7 +112,7 @@ def make_snapshot(): tar = tarfile.open(file0, "w:bz2") for name in snapshot_files[kernel]: - tar.add(os.path.join("stage2", name), + tar.add(os.path.join(stage, name), "rust-stage0/" + name) tar.close() |