1
Fork 0
mirror of https://github.com/RGBCube/agenix synced 2025-07-29 09:47:44 +00:00

contrib: add maintainer release helper scripts

This commit is contained in:
Ryan Mulligan 2022-09-25 14:14:37 -07:00
parent 84f0dc0a4f
commit a4ad67c46e
2 changed files with 75 additions and 0 deletions

8
contrib/_incr_version Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
grep -q "$1" pkgs/agenix.nix || (echo "Couldn't find version $1 in pkgs/agenix/nix" && exit 1)
sed -i "s/$1/$2/g" pkgs/agenix.nix
git add pkgs/agenix/nix
git commit -m "version $2"
exit 0