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
|
2010-07-08 21:27:57 +00:00
|
|
|
[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
|
2010-03-01 04:19:04 +00:00
|
|
|
[ -z "$vers" ] && echo specify version && exit 1
|
|
|
|
|
2010-07-08 21:27:57 +00:00
|
|
|
echo version $vers
|
|
|
|
|
2010-05-10 23:00:22 +00:00
|
|
|
#./pull.sh $vers gz dsc
|
2010-03-01 04:19:04 +00:00
|
|
|
|
|
|
|
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-12 05:38:04 +00:00
|
|
|
pbuilder create --basetgz $basedir/$dist.tgz --distribution $dist --mirror http://http.us.debian.org/debian
|
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
|
|
|
|
|