blob: 5ade81ce5ef98724a5c7373791818dde81baa002 (
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 demeter/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'
|