source:
tools/build/distcc_hash
@
4acf56d
Last change on this file since 4acf56d was 6716d78, checked in by , 5 years ago | |
---|---|
|
|
File size: 149 bytes |
Rev | Line | |
---|---|---|
[6716d78] | 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.