2010-03-01 04:19:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
repo=~/debian
|
|
|
|
|
|
|
|
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
|
|
|
|
[ ! -d "release/$vers" ] && echo missing release/$vers && exit 1
|
2010-07-08 21:27:57 +00:00
|
|
|
echo version $vers
|
2010-03-01 04:19:04 +00:00
|
|
|
|
2010-05-05 22:26:45 +00:00
|
|
|
if echo $vers | grep -q testing ; then
|
|
|
|
component="ceph-testing"
|
2010-03-01 04:19:04 +00:00
|
|
|
else
|
2010-05-05 22:26:45 +00:00
|
|
|
if echo $vers | grep -q unstable ; then
|
|
|
|
component="ceph-unstable"
|
|
|
|
else
|
|
|
|
component="ceph-stable"
|
|
|
|
fi
|
2010-03-01 04:19:04 +00:00
|
|
|
fi
|
|
|
|
echo component $component
|
|
|
|
|
|
|
|
for dist in sid squeeze lenny
|
|
|
|
do
|
|
|
|
dvers="$vers-1"
|
|
|
|
[ "$dist" = "squeeze" ] && dvers="$dvers~bpo60+1"
|
|
|
|
[ "$dist" = "lenny" ] && dvers="$dvers~bpo50+1"
|
|
|
|
echo debian dist $dist vers $dvers
|
|
|
|
|
|
|
|
for f in release/$vers/ceph_${dvers}_*.changes
|
|
|
|
do
|
2010-04-30 22:11:19 +00:00
|
|
|
reprepro --ask-passphrase -b $repo -C $component --ignore=wrongdistribution include $dist $f
|
2010-03-01 04:19:04 +00:00
|
|
|
done
|
|
|
|
done
|