1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-29 09:42:35 +03:00
niv/script/gen

23 lines
388 B
Plaintext
Raw Normal View History

2019-02-08 21:07:05 +03:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash
#!nix-shell -I nixpkgs=./nix
#!nix-shell -p nix
2019-09-08 21:36:40 +03:00
#!nix-shell --keep GITHUB_TOKEN
2019-02-08 21:07:05 +03:00
#!nix-shell --pure
2019-12-18 01:39:35 +03:00
unset NIX_SSL_CERT_FILE
unset SSL_CERT_FILE
2019-02-08 21:07:05 +03:00
set -euo pipefail
echo "Updating README"
cat $(nix-build -A readme) > README.md
2019-09-22 10:32:42 +03:00
if [ $# -gt 0 ] && [ $1 == "svg" ]; then
echo "Updating niv.svg"
$(nix-build -A niv-svg-gen)
fi
echo done