Created
January 29, 2013 03:46
-
-
Save tddewey/4661641 to your computer and use it in GitHub Desktop.
Rsync -- modify DEVENV for your own setup.
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