mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
18 lines
481 B
Bash
Executable File
18 lines
481 B
Bash
Executable File
#!/bin/sh
|
|
|
|
basedir=~/debian-base
|
|
dist=$1
|
|
|
|
pbuilder --clean
|
|
|
|
if [ -e $basedir/$dist.tgz ]; then
|
|
echo updating $dist base.tgz
|
|
savelog -l -n $basedir/$dist.tgz
|
|
cp $basedir/$dist.tgz.0 $basedir/$dist.tgz
|
|
pbuilder update --basetgz $basedir/$dist.tgz --distribution $dist --mirror http://http.us.debian.org/debian
|
|
else
|
|
echo building $dist base.tgz
|
|
pbuilder create --basetgz $basedir/$dist.tgz --distribution $dist --mirror http://http.us.debian.org/debian
|
|
fi
|
|
|