maintainers/scripts/haskell: Add --do-commit option

This commit is contained in:
Malte Brandy
2021-05-03 22:58:51 +02:00
parent 7a353215dc
commit 4dbda0125a
3 changed files with 20 additions and 2 deletions
@@ -49,3 +49,8 @@ sed -e '/ # Stackage Nightly/,/^$/c \TODO\
sed -e "/TODO/r $tmpfile" \
-e "s/TODO/ # Stackage Nightly $version/" \
-i pkgs/development/haskell-modules/configuration-hackage2nix.yaml
if [[ "${1:-}" == "--do-commit" ]]; then
git add pkgs/development/haskell-modules/configuration-hackage2nix.yaml
git commit -m "configuration-hackage2nix.yaml: Changing Stackage pin to Nightly $version"
fi