From 5bc0faf76db029bdd352de91ee21f56e6be1bda1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Jun 2017 15:26:12 +0200 Subject: bumpPerl neu --- bumpPerl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bumpPerl (limited to 'bumpPerl') diff --git a/bumpPerl b/bumpPerl new file mode 100755 index 000000000..5bfd61686 --- /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' -- cgit v1.2.3-70-g09d2