Bug 791684 - Rename clang.tar.bz2 to its sha512 after building. r=rail.

--HG--
extra : rebase_source : b61abc1c5292a85d182f56aeaf01b399b7f2f222
This commit is contained in:
Rafael Ávila de Espíndola 2012-09-17 10:33:00 -04:00
parent 6e3081b400
commit 8a7e8c754a

View File

@ -87,14 +87,17 @@ def build_tooltool_manifest():
tooltool = basedir + '/tooltool.py'
setup = basedir + '/setup.sh'
manifest = 'clang.manifest'
check_run(['python', tooltool, '-m', 'clang.manifest', 'add',
check_run(['python', tooltool, '-m', manifest, 'add',
setup, 'clang.tar.bz2'])
data = simplejson.load(file('clang.manifest'))
data = simplejson.load(file(manifest))
data = [{'clang_version' : 'r%s' % llvm_revision }] + data
out = file('clang.manifest','w')
out = file(manifest,'w')
simplejson.dump(data, out, indent=0, item_sort_key=key_sort)
out.write('\n')
assert data[2]['filename'] == 'clang.tar.bz2'
os.rename('clang.tar.bz2', data[2]['digest'])
isDarwin = platform.system() == "Darwin"
def build_one_stage_aux(stage_dir, is_stage_one):