diff options
author | Erich Eckner <git@eckner.net> | 2017-06-06 15:26:12 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-06 15:26:12 +0200 |
commit | 5bc0faf76db029bdd352de91ee21f56e6be1bda1 (patch) | |
tree | aaf9603b7b191e364f322e0490f179a5d8d986a0 /bumpPerl | |
parent | 1b9eadec0cd58edd6d41feeb5ebfa7169a9f4e06 (diff) | |
download | archlinuxewe-5bc0faf76db029bdd352de91ee21f56e6be1bda1.tar.xz |
bumpPerl neu
Diffstat (limited to 'bumpPerl')
-rwxr-xr-x | bumpPerl | 16 |
1 files changed, 16 insertions, 0 deletions
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' |