diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-08-29 04:53:33 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-08-29 12:28:11 +0200 |
commit | 542eb542544b89ce5c870c63b7bdbb563f007184 (patch) | |
tree | cc103837679b081787c12376514a121dc86122e6 /build_extra/rust/get_version_hash.py | |
parent | 131a44f559ed833de374cba1942b1c4436d80b95 (diff) |
tools: make sha256sum.py more generic and move it to 'tools'
Diffstat (limited to 'build_extra/rust/get_version_hash.py')
-rw-r--r-- | build_extra/rust/get_version_hash.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/build_extra/rust/get_version_hash.py b/build_extra/rust/get_version_hash.py deleted file mode 100644 index 7d37cbf9b..000000000 --- a/build_extra/rust/get_version_hash.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2018 the Deno authors. All rights reserved. MIT license. - -# This script computes the sha256sum of the first command line argument, and -# writes a few hex digits of it to stdout. It is used by rust.gni to derive a -# unique string (without dots/special characters) from a crate version number. - -from hashlib import sha256 -import sys - -if len(sys.argv) != 2: - raise Exception('Expected exactly one argument.') - -hash = sha256(sys.argv[1]).hexdigest() -sys.stdout.write(hash[0:8]) |