ceph/publish.sh

42 lines
888 B
Bash
Raw Normal View History

#!/bin/bash
set -e
repo=~/debian
vers=$1
debsubver=$2
[ -z "$debsubver" ] && debsubver="1"
[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
[ -z "$vers" ] && echo specify version && exit 1
[ ! -d "release/$vers" ] && echo missing release/$vers && exit 1
echo version $vers
if echo $vers | grep -q testing ; then
component="ceph-testing"
else
if echo $vers | grep -q unstable ; then
component="ceph-unstable"
else
2010-10-12 19:47:24 +00:00
if echo $vers | grep -q rc ; then
component="ceph-rc"
else
component="ceph-stable"
fi
fi
fi
echo component $component
for dist in sid squeeze lenny maverick lucid
do
2011-01-25 16:38:10 +00:00
dvers=`./debvers.sh $vers-$debsubver $dist`
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
done
done