Created
September 16, 2012 19:33
-
-
Save makokal/3734030 to your computer and use it in GitHub Desktop.
Zip all local modification in a svn repo
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
#!/bin/sh -e | |
if [ $# -ne 2 ]; then | |
echo usage: $0 working_copy_path zip_file_path | |
exit 1 | |
fi | |
cd $1 && svn status | grep ^[AM] | awk '{print $2}' | zip $2 -@ | |
echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment