mirror of
https://github.com/ceph/ceph
synced 2024-12-15 16:07:00 +00:00
22 lines
384 B
Bash
Executable File
22 lines
384 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
remote=ceph.newdream.net
|
|
vers=$1
|
|
[ -z "$vers" ] && echo specify version && exit 1
|
|
|
|
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
|