Update snapshot scripts for new stdlib name

This commit is contained in:
Brian Anderson 2011-10-31 13:28:54 -07:00
parent 86459b3517
commit bd33951b1c
2 changed files with 11 additions and 2 deletions

View File

@ -9,7 +9,7 @@ def unpack_snapshot(snap):
print("opening snapshot " + dl_path)
tar = tarfile.open(dl_path)
kernel = get_kernel()
for name in snapshot_files[kernel]:
for name in old_snapshot_files[kernel]:
p = "rust-stage0/" + name
fp = os.path.join("stage0", name)
print("extracting " + fp)

View File

@ -15,7 +15,7 @@ download_url_base = "http://dl.rust-lang.org/stage0-snapshots"
download_dir_base = "dl"
download_unpack_base = os.path.join(download_dir_base, "unpack")
snapshot_files = {
old_snapshot_files = {
"linux": ["bin/rustc", "lib/libstd.so",
"lib/librustrt.so", "lib/librustllvm.so"],
"macos": ["bin/rustc", "lib/libstd.dylib",
@ -24,6 +24,15 @@ snapshot_files = {
"lib/rustrt.dll", "lib/rustllvm.dll"]
}
snapshot_files = {
"linux": ["bin/rustc", "lib/libruststd.so",
"lib/librustrt.so", "lib/librustllvm.so"],
"macos": ["bin/rustc", "lib/libruststd.dylib",
"lib/librustrt.dylib", "lib/librustllvm.dylib"],
"winnt": ["bin/rustc.exe", "lib/ruststd.dll",
"lib/rustrt.dll", "lib/rustllvm.dll"]
}
def parse_line(n, line):
global snapshotfile