summarylogtreecommitdiffstats
path: root/update.sh
blob: 3340b8bec6a5da528a3b5892cf70cc3099f77626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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 libreswan-*.pkg.tar.zst
updpkgsums
makepkg -s
makepkg --printsrcinfo > .SRCINFO
newversion=$(grep pkgver .SRCINFO | awk -F= '{print $2}' | sed -e 's/ //g')
git commit -am "Updated to ${newversion}."