2010-07-29 18:32:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-08-11 17:46:31 +00:00
|
|
|
basedir=~/debian-base
|
2010-09-17 22:52:43 +00:00
|
|
|
dist=$1
|
2010-08-11 17:46:31 +00:00
|
|
|
|
2010-07-29 18:32:19 +00:00
|
|
|
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
|
2010-09-17 22:52:43 +00:00
|
|
|
pbuilder update --basetgz $basedir/$dist.tgz --distribution $dist --mirror http://http.us.debian.org/debian
|
2010-07-29 18:32:19 +00:00
|
|
|
else
|
|
|
|
echo building $dist base.tgz
|
|
|
|
pbuilder create --basetgz $basedir/$dist.tgz --distribution $dist --mirror http://http.us.debian.org/debian
|
|
|
|
fi
|
|
|
|
|