Skip to content

Golang program. Recursively adds missing xxhsum (XXH64) hashes from PATH to --xxhsum-filepath.

License

Notifications You must be signed in to change notification settings

lukasz-lobocki/append-xxhsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Badge

append-xxhsum

Recursively adds missing xxhsum (XXH64) hashes from PATH to --xxhsum-filepath.

Usage

append-xxhsum [--xxhsum-filepath FILEPATH] \
  [--bsd-style] [--verbose] [--debug] [--help] \
  PATH

Arguments

arg description
PATH PATH to analyze

Parameters

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.

About

Golang program. Recursively adds missing xxhsum (XXH64) hashes from PATH to --xxhsum-filepath.

Topics

Resources

License

Stars

Watchers

Forks