summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorReto Brunner2020-01-01 00:06:09 +0100
committerReto Brunner2020-01-01 00:06:09 +0100
commitd352a1516944b809e84d529c5b4b07cbfbf5cee5 (patch)
tree2ba45a866207f547f520d2855a8a88fb7a53e368
parent8187d9ec7e61987aedcdf814d1043bb59297b402 (diff)
downloadaur-d352a1516944b809e84d529c5b4b07cbfbf5cee5.tar.gz
add bumpversion.sh
-rwxr-xr-xbumpversion.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bumpversion.sh b/bumpversion.sh
new file mode 100755
index 00000000000..5cfd36d4959
--- /dev/null
+++ b/bumpversion.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -eu
+usage(){
+ echo "${0} \$version"
+ exit 1
+}
+
+[[ $# -ne 1 ]] && usage
+sed -i'' 's/^pkgver=.*$/pkgver='"${1}"'/' PKGBUILD
+updpkgsums
+makepkg --printsrcinfo > .SRCINFO