mirror of
https://github.com/ceph/ceph
synced 2024-12-11 14:09:09 +00:00
b81273d5ec
So you don't have to cut&paste it on the command line Signed-off-by: Sage Weil <sage@newdream.net>
24 lines
470 B
Bash
Executable File
24 lines
470 B
Bash
Executable File
#!/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
|
|
echo version $vers
|
|
|
|
test -d release/$vers || mkdir -p release/$vers
|
|
|
|
shift
|
|
|
|
if [ -z "$*" ]; then
|
|
echo fetching $vers
|
|
rsync -auv sage@$remote:release/$vers/ release/$vers
|
|
else
|
|
for e in $*; do
|
|
echo fetching $vers/*.$e
|
|
rsync -auv sage@$remote:release/$vers/\*.$e release/$vers
|
|
done
|
|
fi
|