*Subversion 設定(PostCommit) [#lce881b1]
#contents2_1(compact=true,depth=1-2)

&br;
**リポジトリの作成 [#rae2b45f]
 $ cd /home/svn/repos 
 $ mkdire sample

 $ svnadmin create sample

 $ svn mkdir file:///home/svn/repos/sample/trunk -m "create"
 $ svn mkdir file:///home/svn/repos/sample/branches -m "create"
 $ svn mkdir file:///home/svn/repos/sample/tags -m "create"

 $ sudo chown -R apache:apache sample

**チェックアウト [#h72f5899]
 $ cd ドキュメントルート
 $ svn co http://localhost/sample/trunk/

**リリース [#i0101121]
 $ cd /home/svn/rspos/sample
 $ sudo mkdir release
 $ sudo cp /home/svn/repos/sample/hooks/post-commit.tmpl release/post-commit
 $ sudo chown -R apache:apache release

 $ cd release 
 $ sudo chmod 755 post-commit

 $ vim post-commit

 #REPOS="$1"
 #REV="$2"
 
 #commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
 #log-commit.py --repository "$REPOS" --revision "$REV" 
 
 ##auto update
 /usr/local/svn/bin/svn update /ドキュメントルート/ >> /var/log/svn/sample.log

**ログファイルの作成 [#bbfa3ec5]
 $ sudo mkdir /var/log/svn
 $ sudo touch /var/log/svn/sample.log
 $ sudo chown -R username:username /var/log/svn



&br;
*Comment [#u3456b88]
- peter 2004 production made -- [[jackiarria]] &new{2009-10-19 (月) 22:37:41};
- academies degree oceans population likewise added -- [[faertardi]] &new{2009-10-19 (月) 22:39:10};
- 2000 pattern surface stratosphere -- [[bradigangl]] &new{2009-11-07 (土) 06:09:30};
- paleoclimatology read economic output caused early -- [[natae-tyan]] &new{2009-11-07 (土) 06:10:58};

#comment_nospam
&br;
#counter

IP:216.45.58.187 TIME:"2009-11-07 (土) 06:10:58" REFERER:"http://wiki.minaco.net/index.php?Linux%2FSubversion%2FPostCommit" USER_AGENT:"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4 (.NET CLR 3.5.30729)"

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS