summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-03-03 12:21:16 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-03-03 12:21:16 +0100
commit5e1354f6a150ebedd8d77a5ffc9c5a13b648b360 (patch)
tree93f4d1ef58c631a78379d69c5e18e63b173d119c
parentAlways run pacman -Syu at start. (diff)
downloadaur-runner-rebuilder.tar.gz
aur-runner-rebuilder.tar.xz
Add script to bump pkgrel.rebuilder
-rwxr-xr-xbump-pkgrel.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/bump-pkgrel.pl b/bump-pkgrel.pl
new file mode 100755
index 0000000..d279866
--- /dev/null
+++ b/bump-pkgrel.pl
@@ -0,0 +1,12 @@
+#!/usr/bin/perl
+
+while (<>) {
+ if (/^pkgrel *= *([0-9]+)$/) {
+ print "pkgrel=${1}.1\n";
+ } elsif (/^pkgrel *= *([0-9]+)\.([0-9]+)$/) {
+ $minor = $2 + 1;
+ print "pkgrel=${1}.${minor}\n";
+ } else {
+ print
+ }
+}