2010-03-01 04:19:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
remote=ceph.newdream.net
|
|
|
|
vers=$1
|
2010-07-08 21:27:57 +00:00
|
|
|
[ -z "$vers" ] && [ -e .last_release ] && vers=`cat .last_release`
|
2010-03-01 04:19:04 +00:00
|
|
|
[ -z "$vers" ] && echo specify version && exit 1
|
|
|
|
[ ! -d release/$vers ] && echo release/$vers dne && exit 1
|
2010-07-08 21:27:57 +00:00
|
|
|
echo version $vers
|
2010-03-01 04:19:04 +00:00
|
|
|
|
|
|
|
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
|