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>
36 lines
825 B
Bash
Executable File
36 lines
825 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
repo=~/debian
|
|
|
|
vers=$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
|
|
component="ceph-stable"
|
|
fi
|
|
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
|
|
reprepro --ask-passphrase -b $repo -C $component --ignore=wrongdistribution include $dist $f
|
|
done
|
|
done
|