#!/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