-
-
Save k0pernikus/3451115 to your computer and use it in GitHub Desktop.
export SVN URL, zip it up, drop it on your desktop
This file contains hidden or 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/bash | |
| if [ $# -ne 2 ] ; then | |
| echo "Usage: "`basename "$0"` "SVN_URL ZIP_NAME" >&2 | |
| exit 1 | |
| fi | |
| SVN_URL=$1 | |
| DIR_NAME=$2 | |
| cd ~/Desktop/ | |
| # svn export -q $SVN_URL $DIR_NAME | |
| svn export $SVN_URL $DIR_NAME | |
| zip -rq ${DIR_NAME}.zip $DIR_NAME | |
| rm -rf $DIR_NAME | |
| echo "Successfully created ${DIR_NAME}.zip from ${SVN_URL}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment