Compare commits
2 commits
612010c48a
...
14367aba17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14367aba17 | ||
|
|
4d6815955c |
4 changed files with 17 additions and 0 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
BIN
export.png
BIN
export.png
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 130 B |
8
generate.sh
Executable file
8
generate.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p imagemagick
|
||||||
|
|
||||||
|
DIR=$(dirname -- "$(readlink -f -- "$0")")
|
||||||
|
|
||||||
|
magick "$DIR/source.svg" "$DIR/export.png"
|
||||||
|
|
||||||
|
git add "$DIR/export.png"
|
||||||
8
pre-commit
Executable file
8
pre-commit
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
./generate.sh
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "generate.sh failed. Commit aborted."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue