blob: 046470a06c25b363d23b60ebdddf4163e80a4f99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
set -e
remote=ceph.newdream.net
vers=$1
[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
[ -z "$vers" ] && echo specify version && exit 1
[ ! -d release/$vers ] && echo release/$vers dne && exit 1
echo version $vers
shift
if [ -z "$*" ]; then
echo pushing $vers
rsync -auv release/$vers/ $remote:release/$vers
else
for e in $*; do
echo pushing $vers/*.$e
rsync -auv release/$vers/*.$e $remote:release/$vers
done
fi
|