source:
tools/build/distcc_hash
@
9861ef2
Last change on this file since 9861ef2 was 6716d78, checked in by , 5 years ago | |
---|---|
|
|
File size: 149 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | tools=$( dirname "${BASH_SOURCE[0]}" ) |
4 | path=$(readlink -f ${tools}/../../$1) |
5 | |
6 | hash=$(openssl dgst -sha256 <<< $path) |
7 | echo "${hash: -10}" |
Note: See TracBrowser
for help on using the repository browser.