-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sh
executable file
·41 lines (33 loc) · 888 Bytes
/
publish.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/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
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
dvers=`./debvers.sh $vers-$debsubver $dist`
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