Warning: Use of undefined constant ddsg_language - assumed 'ddsg_language' (this will throw an Error in a future version of PHP) in /home/ezic/ezic.info/public_html/w.ezic.info/wp-content/plugins/sitemap-generator/sitemap-generator.php on line 44
bashによるSubversionへの追加スクリプト | EZiC[イージック]コンテンツ紹介!

bashによるSubversionへの追加スクリプト

シェルスクリプト(bash)を使ってSubversionのリポジトリを追加する

#-------------------------------------------------
# Make Repository on Subversion
#-------------------------------------------------

# Argument checkingif [ "$1" = "" ];
  then
    echo 'Not argument, Please Enter!'
    exit;
fi

# Variable assignmentrepo_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

タイトルとURLをコピーしました