シェルスクリプト(bash)を使ってSubversionのリポジトリを追加する
#------------------------------------------------- # Make Repository on Subversion #------------------------------------------------- # Argument checking if [ "$1" = "" ]; then echo 'Not argument, Please Enter!' exit; fi # Variable assignment repo_name=$1 svn_path='/home/repos/' #------------------------------------------------- # Make Repository svnadmin create $svn_path$repo_name svn mkdir file://localhost$svn_path$repo_name/trunk -m "create" svn mkdir file://localhost$svn_path$repo_name/branche -m "create" svn mkdir file://localhost$svn_path$repo_name/tags -m "create" # Add Import Files#svn import [Import Path] file://localhost$svn_path$repo_name/trunk -m "import!!" # Permisson Changechmod -R 777 $svn_path
スポンサードリンク
コメント