[arch-dev-public] Repository rebuilding
Jürgen Hötzel
juergen at hoetzel.info
Fri Aug 10 15:45:17 EDT 2007
On Fri, Aug 10, 2007 at 09:10:15PM +0200, Andreas Radke wrote:
> Am Fri, 10 Aug 2007 12:48:12 -0500
> schrieb "Aaron Griffin" <aaronmgriffin at gmail.com>:
> >
> > Why not just increment the pkgrel? I don't understand the significance
> >
>
> we already have packages with subdecimal versions in both
> architectures. it's just a question of shell scripting what's the easy
> way to increase either the pkgrel or add ".1"
Hmm... i wouldn't call this advanced shell scripting:
find . -name PKGBUILD -print0|xargs -0 bumppkgbuild
-------------- next part --------------
#!/bin/bash
for PKGBUILD in $@; do
if source ${PKGBUILD}; then
# bump and get rid of subreleases
let newrel=${pkgrel%.*}+1
sed -i s/^pkgrel=.*/pkgrel=${newrel}/ ${PKGBUILD}
fi
done
More information about the arch-dev-public
mailing list