Created
September 29, 2011 14:55
-
-
Save yas375/1250903 to your computer and use it in GitHub Desktop.
script for creating local 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 | |
# create directory for svn repositories | |
mkdir -p $HOME/svn | |
# create initial_state if it's not exists | |
mkdir -p $HOME/svn/initial_state/trunk $HOME/svn/initial_state/branches $HOME/svn/initial_state/tags | |
echo 'creating new repository' | |
svnadmin create $HOME/svn/$1 | |
echo 'make initial commit with basic repository structure' | |
svn import $HOME/svn/initial_state file://$HOME/svn/$1 -m "Initial commit" | |
echo 'it seems that everything is ok. You could checkout your new repository:' | |
echo "svn checkout file://$HOME/svn/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment