1. 메일 Script생성
[root@test ~]# cd /home/svn/project [root@test project]# mkdir scripts [root@test project]# cd scripts [root@test scripts]# vi svn_email_commit.sh |
#!/bin/bash LIMITDIFF=200 SUBJECT="SVNCommit ($AUTHOR) $REPOS [$REV]" ----------------------------------------------------------------- ----------------------------------------------------------------- ----------------------------------------------------------------- # Send email # Cleanup |
2. shell script 실행권한 설정
[root@test scripts]# chmod +x svn_email_commit.sh |
3. hookup 파일 설정
[root@test scripts]# cd .. [root@test project]# cd hooks [root@test hooks]# vi post-commit |
#!/bin/sh # Send it to these people, calling the script we created above |
4. hookup 파일 실행권한 설정
[root@test ~]# chmod +x post-commit |
5. commit시 발송되는 이메일 내용
-------------------- SVN Commit Notification -------------------- ----------------------------------------------------------------- ----------------------------------------------------------------- ----------------------------------------------------------------- |
'OS > LINUX' 카테고리의 다른 글
[SVN] 윈도우용 SVN 클라이언트(TortoiseSVN) 사용법 (0) | 2011.06.29 |
---|---|
[SVN] SVN 기본 개념 (0) | 2011.06.29 |
[SVN] SVN 설치 (How to install Subversion on Linux) (0) | 2011.06.29 |
[LINUX] history 명령어 (0) | 2011.05.17 |
[Linux] vi 명령어 모음 (0) | 2011.04.14 |