mirror of https://github.com/ceph/ceph
54 lines
980 B
Bash
Executable File
54 lines
980 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
basedir=~/debian-base
|
|
|
|
vers=$1
|
|
debsubver=$2
|
|
dists=$3
|
|
|
|
[ -z "$debsubver" ] && debsubver="1"
|
|
|
|
[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
|
|
[ -z "$vers" ] && echo specify version && exit 1
|
|
|
|
echo version $vers
|
|
|
|
#./pull.sh $vers gz dsc
|
|
|
|
[ -z "$dists" ] && dists="sid squeeze lenny maverick lucid"
|
|
|
|
for dist in $dists
|
|
do
|
|
pbuilder --clean
|
|
|
|
dvers=`./debvers.sh $vers-$debsubver $dist`
|
|
echo debian vers $dvers
|
|
echo building debs for $dist
|
|
|
|
cmd="pbuilder build \
|
|
--binary-arch \
|
|
--basetgz $basedir/$dist.tgz --distribution $dist \
|
|
--buildresult release/$vers \
|
|
--debbuildopts -j`grep -c processor /proc/cpuinfo` \
|
|
release/$vers/ceph_$dvers.dsc"
|
|
|
|
if $cmd ; then
|
|
echo $dist done
|
|
else
|
|
./update_pbuilder.sh $dist
|
|
$cmd
|
|
fi
|
|
done
|
|
|
|
|
|
# do lintian checks
|
|
for dist in $dists
|
|
do
|
|
dvers=`./debvers.sh $vers-$debsubver $dist`
|
|
echo lintian checks for $dvers
|
|
lintian --allow-root release/$vers/*$dvers*.deb
|
|
done
|
|
|