]> Git Repo - VerusCoin.git/blame - depends/cargo-checksum.sh
Auto merge of #3098 - str4d:2343-overwinter-disable-mempooltxinputlimit, r=str4d
[VerusCoin.git] / depends / cargo-checksum.sh
CommitLineData
0adfdc99
JG
1echo "{\"files\":{$(
2find . -type f | # Get list of file paths
3grep -v $1 | # Exclude Makefile hashes
4grep -v .stamp_ | # Exclude Makefile stamps
5sed 's|^./||' | # Remove leading ./
6sort | # Sort (for uniformity)
7xargs $2 | # Get SHA256 hashes (assumes standard 'H(A) A' format)
8awk -v OFS='":"' '{print $2, $1}' | # 'H(A) A' -> 'A":"H(A)'
9sed 's|^|"|' | # 'A":"H(A)' -> '"A":"H(A)'
10sed 's|$|"|' | # '"A":"H(A)' -> '"A":"H(A)"'
11tr '\n' ',' | # Concatenate lines with commas
12sed 's|,$||' # Remove any trailing comma (to fit JSON spec)
13)},\"package\":\"$3\"}" > .cargo-checksum.json
This page took 0.021737 seconds and 4 git commands to generate.