Added genaration script, pre-commit and git-lfs
This commit is contained in:
parent
b08c09b475
commit
4d6815955c
4 changed files with 15 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
|
||||||
6
generate.sh
Executable file
6
generate.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i bash -p imagemagick
|
||||||
|
|
||||||
|
DIR=$(dirname -- "$(readlink -f -- "$0")")
|
||||||
|
|
||||||
|
magick "$DIR/source.svg" "$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
|
||||||
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Loading…
Add table
Add a link
Reference in a new issue