This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

adding remote render script

  • Loading branch information...
hecanjog committed Feb 29, 2012
1 parent 680cc60 commit 65cfdc00a5852c527a7c0c439fd70d97ee933738
Showing with 21 additions and 0 deletions.
  1. +5 −0 rsnd-exclude.txt
  2. +16 −0 rsnd.sh
View
@@ -0,0 +1,5 @@
renders/*
sounds/bball/*
sounds/cv/*
sounds/reber/r3/*
sounds/violin-all.wav
View
16 rsnd.sh
@@ -0,0 +1,16 @@
#!/bin/bash
if [[ $1 == "local" || $1 == "l" ]]
then rsync -avz --exclude-from="rsnd-exclude.txt" . erik@shampooserve:/home/erik/fabric/
ssh erik@shampooserve "cd fabric/ ; python $2"
rsync -avz erik@shampooserve:/home/erik/fabric/renders/ renders/
elif [[ $1 == "remote" || $1 == "r" ]]
then rsync -avz --exclude-from="rsnd-exclude.txt" . erik@shampoo.bonusroom.org:/home/erik/fabric/
ssh erik@shampoo.bonusroom.org "cd fabric/ ; python $2"
rsync -avz erik@shampoo.bonusroom.org:/home/erik/fabric/renders/ renders/
elif [[ $1 == "sync" || $1 == "s" ]]
then if [[ $2 == "local" || $2 == "l" ]]
then rsync -avz erik@shampooserve:/home/erik/fabric/renders/ renders/
elif [[ $2 == "remote" || $2 == "r" || $2 == "" ]]
then rsync -avz erik@shampoo.bonusroom.org:/home/erik/fabric/renders/ renders/
fi
fi

0 comments on commit 65cfdc0

Please sign in to comment.