Created
February 15, 2013 20:57
-
-
Save tddewey/4963483 to your computer and use it in GitHub Desktop.
Rsync Script for dev->vip repo (or back again, really)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vipsync() { | |
local DEVENV="/Users/tddewey/Sites/vip/wp-content/themes/vip/" | |
rsync -rv --delete --exclude='.svn' $DEVENV$1/* $DEVENV$2 | |
cd $DEVENV$2 | |
svn status | grep '^!' | awk '{print $2}' | xargs svn rm | |
svn status | grep '^?' | awk '{print $2}' | xargs svn add | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment