ceph/update_pbuilder.sh

20 lines
469 B
Bash
Raw Normal View History

#!/bin/sh
2010-08-11 17:46:31 +00:00
basedir=~/debian-base
for dist in sid squeeze lenny
do
pbuilder --clean
if [ -e $basedir/$dist.tgz ]; then
echo updating $dist base.tgz
savelog -l -n $basedir/$dist.tgz
2010-08-11 17:46:31 +00:00
cp $basedir/$dist.tgz.0 $basedir/$dist.tgz
pbuilder update --basetgz $basedir/$dist.tgz --distribution $dist
else
echo building $dist base.tgz
pbuilder create --basetgz $basedir/$dist.tgz --distribution $dist --mirror http://http.us.debian.org/debian
fi
done