Options:
[--debian=distros]
[--ubuntu=distros]
- [--update=true|false]
[--upload]
[--concurrency=N]
EOF
# things that might be set by options
upload=false
-update=true
do_help=false
concurrency=4
--debian=*)
DEBIAN_DIST=$optarg
;;
- --update=*)
- update=$optarg
- ;;
--concurrency=*)
concurrency=$optarg
;;
if test ! -f /var/cache/pbuilder/${dist}-${arch}-base.tgz; then
sudo DIST=$dist ARCH=$arch $PBUILDER create
fi
- if $update; then
+ for f in `find /var/cache/pbuilder/${dist}-${arch}-base.tgz -ctime +7`; do
sudo DIST=$dist ARCH=$arch $PBUILDER update --override-config
- fi
+ done
sudo DIST=$dist ARCH=$arch $PBUILDER --build $PKG
) >${dist}-${arch}.log 2>&1 &
i=`expr $i + 1`