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-10-18 17:19:28 +00:00
|
|
|
debsubver=$2
|
|
|
|
dists=$3
|
|
|
|
|
|
|
|
[ -z "$debsubver" ] && debsubver="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
|
|
|
|
2011-01-05 20:40:55 +00:00
|
|
|
[ -z "$dists" ] && dists="sid squeeze lenny maverick lucid"
|
2010-09-18 03:19:59 +00:00
|
|
|
|
|
|
|
for dist in $dists
|
2010-03-01 04:19:04 +00:00
|
|
|
do
|
2010-03-10 05:38:30 +00:00
|
|
|
pbuilder --clean
|
|
|
|
|
2011-01-05 20:40:55 +00:00
|
|
|
dvers=`./debvers.sh $vers-$debsubver $dist`
|
2010-03-01 04:19:04 +00:00
|
|
|
echo debian vers $dvers
|
|
|
|
echo building debs for $dist
|
2010-12-20 23:59:14 +00:00
|
|
|
|
|
|
|
cmd="pbuilder build \
|
2010-03-11 17:05:37 +00:00
|
|
|
--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` \
|
2010-12-20 23:59:14 +00:00
|
|
|
release/$vers/ceph_$dvers.dsc"
|
|
|
|
|
|
|
|
if $cmd ; then
|
|
|
|
echo $dist done
|
|
|
|
else
|
|
|
|
./update_pbuilder.sh $dist
|
|
|
|
$cmd
|
|
|
|
fi
|
2010-03-01 04:19:04 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# do lintian checks
|
2010-10-18 17:19:28 +00:00
|
|
|
for dist in $dists
|
2010-03-01 04:19:04 +00:00
|
|
|
do
|
2011-01-05 20:40:55 +00:00
|
|
|
dvers=`./debvers.sh $vers-$debsubver $dist`
|
2010-03-01 04:19:04 +00:00
|
|
|
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
|
|
|
|
|