2010-03-01 04:19:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2010-03-02 17:45:55 +00:00
|
|
|
basedir=~/debian-base
|
|
|
|
|
2010-03-01 04:19:04 +00:00
|
|
|
vers=$1
|
|
|
|
[ -z "$vers" ] && echo specify version && exit 1
|
|
|
|
|
|
|
|
./pull.sh $vers gz dsc
|
|
|
|
|
|
|
|
for dist in sid squeeze lenny
|
|
|
|
do
|
2010-03-10 05:38:30 +00:00
|
|
|
pbuilder --clean
|
|
|
|
|
2010-03-02 17:45:55 +00:00
|
|
|
if [ -e $basedir/$dist.tgz ]; then
|
2010-03-01 04:19:04 +00:00
|
|
|
echo updating $dist base.tgz
|
2010-03-02 17:45:55 +00:00
|
|
|
pbuilder update --basetgz $basedir/$dist.tgz --distribution $dist
|
2010-03-01 04:19:04 +00:00
|
|
|
else
|
|
|
|
echo building $dist base.tgz
|
2010-03-02 17:45:55 +00:00
|
|
|
pbuilder create --basetgz $basedir/$dist.tgz --distribution $dist
|
2010-03-01 04:19:04 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
dvers="$vers-1"
|
|
|
|
[ "$dist" = "squeeze" ] && dvers="$dvers~bpo60+1"
|
|
|
|
[ "$dist" = "lenny" ] && dvers="$dvers~bpo50+1"
|
|
|
|
echo debian vers $dvers
|
|
|
|
|
|
|
|
echo building debs for $dist
|
2010-03-11 17:05:37 +00:00
|
|
|
pbuilder build \
|
|
|
|
--binary-arch \
|
|
|
|
--basetgz $basedir/$dist.tgz --distribution $dist \
|
2010-03-01 04:19:04 +00:00
|
|
|
--buildresult release/$vers \
|
|
|
|
--debbuildopts -j`grep -c processor /proc/cpuinfo` \
|
|
|
|
release/$vers/ceph_$dvers.dsc
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# do lintian checks
|
|
|
|
for dist in sid squeeze lenny
|
|
|
|
do
|
|
|
|
dvers="$vers-1"
|
|
|
|
[ "$dist" = "squeeze" ] && dvers="$dvers~bpo60+1"
|
|
|
|
[ "$dist" = "lenny" ] && dvers="$dvers~bpo50+1"
|
|
|
|
echo lintian checks for $dvers
|
2010-03-02 18:02:36 +00:00
|
|
|
lintian --allow-root release/$vers/*$dvers*.deb
|
2010-03-01 04:19:04 +00:00
|
|
|
done
|
|
|
|
|