mirror of
https://github.com/ceph/ceph
synced 2024-12-24 04:14:07 +00:00
b81273d5ec
So you don't have to cut&paste it on the command line Signed-off-by: Sage Weil <sage@newdream.net>
53 lines
1.2 KiB
Bash
Executable File
53 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
basedir=~/debian-base
|
|
|
|
vers=$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
|
|
|
|
for dist in sid squeeze lenny
|
|
do
|
|
pbuilder --clean
|
|
|
|
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 --mirror http://http.us.debian.org/debian
|
|
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 \
|
|
--binary-arch \
|
|
--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 --allow-root release/$vers/*$dvers*.deb
|
|
done
|
|
|