summaryrefslogtreecommitdiff
path: root/bumpPerl
diff options
context:
space:
mode:
Diffstat (limited to 'bumpPerl')
-rwxr-xr-xbumpPerl16
1 files changed, 16 insertions, 0 deletions
diff --git a/bumpPerl b/bumpPerl
new file mode 100755
index 00000000..5bfd6168
--- /dev/null
+++ b/bumpPerl
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+me="$(readlink -f $0)"
+cd $(dirname "${me}")
+
+for pkgbuild in perl-*/PKGBUILD; do
+
+ pkgrel="$(
+ sed -n "/^pkgrel='\?[0-9]\+'\?\$/{s@^pkgrel='\?\([0-9]\+\)'\?\$@\1@;p}" "${pkgbuild}"
+ )"
+ sed -i "s@^\(pkgrel=\)'\?[0-9]\+'\?\$@\1'$[${pkgrel}+1]'@" "${pkgbuild}"
+ git add "${pkgbuild}"
+
+done
+
+git commit -m 'recompile all perl packages'