# # setup # curdir=`pwd` repodir="_repo/repo" _script_name="gen rebuild list" _build_arch="$_arch" _cur_repo=`pwd | awk -F '/' '{print $NF}'` _needed_functions="config_handling messages" # load functions for subroutine in ${_needed_functions} do source _buildscripts/functions/${subroutine} done # # startup # title "${_script_name}" check_configs load_configs if [ -z "$1" ]; then error "Usage: $0 " newline exit fi list="$1" startdir=$(pwd) packages=`cat $startdir/_temp/rebuildlist-$list.txt | grep -v "$list"` pushd $list ../makepkg -si popd for pkg in $packages; do pushd $pkg sed -i -e 's/\/pkgrel=21/g' PKGBUILD sed -i -e 's/\/pkgrel=20/g' PKGBUILD sed -i -e 's/\/pkgrel=19/g' PKGBUILD sed -i -e 's/\/pkgrel=18/g' PKGBUILD sed -i -e 's/\/pkgrel=17/g' PKGBUILD sed -i -e 's/\/pkgrel=16/g' PKGBUILD sed -i -e 's/\/pkgrel=15/g' PKGBUILD sed -i -e 's/\/pkgrel=14/g' PKGBUILD sed -i -e 's/\/pkgrel=13/g' PKGBUILD sed -i -e 's/\/pkgrel=12/g' PKGBUILD sed -i -e 's/\/pkgrel=11/g' PKGBUILD sed -i -e 's/\/pkgrel=10/g' PKGBUILD sed -i -e 's/\/pkgrel=9/g' PKGBUILD sed -i -e 's/\/pkgrel=8/g' PKGBUILD sed -i -e 's/\/pkgrel=7/g' PKGBUILD sed -i -e 's/\/pkgrel=6/g' PKGBUILD sed -i -e 's/\/pkgrel=5/g' PKGBUILD sed -i -e 's/\/pkgrel=4/g' PKGBUILD sed -i -e 's/\/pkgrel=3/g' PKGBUILD sed -i -e 's/\/pkgrel=2/g' PKGBUILD ../makepkg -si popd done