1
1
mirror of https://github.com/nmattia/niv.git synced 2024-12-01 15:56:03 +03:00
niv/script/gen
Nicolas Mattia 09d6e876df Fix typos
2019-09-22 09:32:42 +02:00

21 lines
376 B
Plaintext
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash
#!nix-shell -I nixpkgs=./nix
#!nix-shell -p nix
#!nix-shell --keep SSL_CERT_FILE
#!nix-shell --keep GITHUB_TOKEN
#!nix-shell --pure
set -euo pipefail
echo "Updating README"
cat $(nix-build -A readme) > README.md
if [ $# -gt 0 ] && [ $1 == "svg" ]; then
echo "Updating niv.svg"
$(nix-build -A niv-svg-gen)
fi
echo done