#!/bin/bash # fake variable for fwmakepkg CHROOT=1 . functions.sh . /etc/makepkg.conf . /usr/lib/frugalware/fwmakepkg if [ "$1" == "--help" ]; then echo "missing source files" exit 1 fi if [ "$1" == "--download" ]; then download="y" shift fi startdir=.. cd $startdir for i in `find source -maxdepth 5 -name FrugalBuild` do cd `dirname $i` || continue unset pkgver pkgextraver nobuild options archs export startdir=`pwd` . FrugalBuild || echo "errors parsing the FrugalBuild" if [ ! -z "$pkgname" -a ! "$nobuild" -a ! "`check_option NOBUILD`" -a ! "`check_option NOMIRROR`" ]; then for j in ${archs[@]} do [[ "$j" =~ '^!' ]] && continue export CARCH=$j unset pkgver pkgextraver source for k in `set|grep ^_F_|sed 's/\(=.*\| ()\)//'`; do unset $k; done export startdir=`pwd` . FrugalBuild || echo "errors parsing the FrugalBuild for $j" for k in "${source[@]}" do [[ "$k" =~ "http://ftp.frugalware.org" ]] && continue file="`strip_url $k`" if [ ! -e "$file" ]; then echo "`dirname $i`: $file is missing (`grep Maintainer FrugalBuild |sed 's/.*: //'`)" if [ ! -z "$download" ]; then echo "downloading $file..." $FTPAGENT $k fi fi done done fi cd - >/dev/null done