Subversion helper Bash Script
Sometimes repository names get long, and when you’re using subversion typing them all out can be a pain. I wrote this quick bash helper script to make using subversion with one repository easier and quicker to use.
#!/bin/bash MYREPOSITORY="http://myrepository.net/svn" #Script requires USERNAME, REPOSITORY DIRECTORY, and COMMAND MINPARAMS=3 if [ $# -lt "$MINPARAMS" ] then echo " Usage: ./msvn username respository command" exit fi USERNAME=$1 REPOSITORY=$2 SVNCOMMAND=$3 shift shift shift CPARAMS=$@ echo "`svn $SVNCOMMAND --username $USERNAME $MYREPOSITORY/$REPOSITORY $CPARAMS`"
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.


Comments
No comments yet.
Leave a comment