Created
May 14, 2009 06:39
-
-
Save dragon3/111537 to your computer and use it in GitHub Desktop.
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/bash | |
# $Id: /mirror/codecheck.in/platform/linux/misc/backlog_svn_sync.sh 9698 2008-08-25T13:12:27.251994Z dragon3 $ | |
# | |
# Script to svnsync "Backlog" project repository. | |
# | |
if [ $# -ne 2 ]; then | |
echo "Usage: $0 [space key] [project key]" | |
exit 1; | |
fi | |
SPACE_KEY=$1 | |
PROJECT_KEY=$2 | |
cwd=`pwd` | |
hook_revprop=${PROJECT_KEY}/hooks/pre-revprop-change | |
svnadmin create $PROJECT_KEY | |
echo '#!/bin/sh' > $hook_revprop | |
echo 'exit 0' >> $hook_revprop | |
chmod +x $hook_revprop | |
svnsync init file://${cwd}/${PROJECT_KEY} https://${SPACE_KEY}.backlog.jp/svn/${PROJECT_KEY} | |
svnsync sync file://${cwd}/${PROJECT_KEY} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment