2024-05-30 12:35:38 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
here="$(dirname "$(realpath "$0")")"
|
|
|
|
|
cd "$here/.."
|
|
|
|
|
|
|
|
|
|
echo "Generating examples/commithash.svg"
|
|
|
|
|
python3 -m colorhash "$(git rev-parse HEAD)" --input-type hash --hash sha1 --output-type svg --out examples/commithash.svg
|
2024-05-31 22:26:39 -07:00
|
|
|
git add examples/commithash.svg
|
2024-05-30 12:35:38 -07:00
|
|
|
|
2024-05-31 22:26:39 -07:00
|
|
|
# Also print the ANSI version to the command line
|
|
|
|
|
python3 -m colorhash "$(git rev-parse HEAD)" --input-type hash --hash sha1
|