Recursively adds missing xxhsum (XXH64) hashes from PATH to --xxhsum-filepath.
append-xxhsum [--xxhsum-filepath FILEPATH] \
[--bsd-style] [--verbose] [--debug] [--help] \
PATH
arg | description |
---|---|
PATH | PATH to analyze |
param | long-param | description |
---|---|---|
-x | --xxhsum-filepath | FILEPATH of file to append to. Defaults to PATH\..\DIRNAME.xxhsum |
-b | --bsd-style | BSD-style checksum lines. Defaults to GNU-style |
-v | --verbose | increase the verbosity |
-d | --debug | show debug information |
-h | --help | show this help message and exit |
To verify use xxhsum --check --quiet FILEPATH
Test run
pushd ~/Pictures >/dev/null \
&& time ~/Code/golang/append-xxhsum/bin/append-xxhsum-amd64 ../Code \
&& popd >/dev/null
Cross-compilation for ARM
Use export GOOS=linux && export GOARCH=arm64
before running go build
.
Use lscpu
to find out architecture. Check this guide for export values.