summaryrefslogtreecommitdiff
path: root/bumpPerl
blob: 5bfd616864cf34102090f9ff93e4af4325d4b543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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'