ceph/builddebs.sh
2010-03-02 09:45:55 -08:00

46 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -e
basedir=~/debian-base
vers=$1
[ -z "$vers" ] && echo specify version && exit 1
./pull.sh $vers gz dsc
for dist in sid squeeze lenny
do
if [ -e $basedir/$dist.tgz ]; then
echo updating $dist base.tgz
pbuilder update --basetgz $basedir/$dist.tgz --distribution $dist
else
echo building $dist base.tgz
pbuilder create --basetgz $basedir/$dist.tgz --distribution $dist
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
pbuilder build --basetgz $basedir/$dist.tgz --distribution $dist \
--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
lintian release/$vers/*$dvers*.deb
done