summarylogtreecommitdiffstats
path: root/update.sh
blob: 4d76184c3252b061bb9940d35a4ecf656fc00861 (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-nightly-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}."