summarylogtreecommitdiffstats
path: root/update.sh
blob: c3f4bfe1c9a6c998f768394840b9b59c771a5589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

#
# This script is used to semi-automatically run a build and update the PKGBUILD file locally.
# It is not used in the AUR builds in any way, and is only for manual releasing purposes.
#

set -e

rm -rf ferdium-bin-*.pkg.tar.zst
makepkg
makepkg --printsrcinfo > .SRCINFO
newversion=$(grep pkgver .SRCINFO | awk -F= '{print $2}' | sed -e 's/ //g')
git commit -am "Updated to ${newversion}."