Skip to content

Instantly share code, notes, and snippets.

@yas375
Created September 29, 2011 14:55
Show Gist options
  • Save yas375/1250903 to your computer and use it in GitHub Desktop.
Save yas375/1250903 to your computer and use it in GitHub Desktop.
script for creating local svn repo
#!/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