summaryrefslogtreecommitdiff
path: root/bumpPerl
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-06 15:26:12 +0200
committerErich Eckner <git@eckner.net>2017-06-06 15:26:12 +0200
commit5bc0faf76db029bdd352de91ee21f56e6be1bda1 (patch)
treeaaf9603b7b191e364f322e0490f179a5d8d986a0 /bumpPerl
parent1b9eadec0cd58edd6d41feeb5ebfa7169a9f4e06 (diff)
downloadarchlinuxewe.git.save-5bc0faf76db029bdd352de91ee21f56e6be1bda1.tar.xz
bumpPerl neu
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'