summarylogtreecommitdiffstats
path: root/justfile
blob: 7d2e2097bf15776c82f913625ecd6682e3d19806 (plain)
1
2
3
4
5
6
7
8
9
update version:
  #!/usr/bin/env bash
  set -euxo pipefail

  sed --regexp-extended --in-place -E "0,/pkgver=.+$/{s/(pkgver=)(.+$)/\1{{version}}/}" ./PKGBUILD
  shas=$(makepkg --geninteg)
  sed --regexp-extended --in-place -E "0,/sha512sums=.+$/{s/sha512sums=.+$/${shas}/}" ./PKGBUILD
  makepkg --printsrcinfo > .SRCINFO
  git commit --all --message $(echo {{version}} | tr -d '"'})