쿨엔님의 포스트  를 보고 뚝딱뚝딱 맥용을 만들었다. bash 스크립트와 MacOSX의 say 커맨드를 이용해서 간단하게 만들었다.

#!/bin/bash
svn info --username=USERNAME --password=PASSWORD http://svn.repository.com/project/trunk > last.info.tmp
rediff=`diff last.info last.info.tmp`
if test -n "$rediff"; then
say "Source tree has been modified."
\mv last.info.tmp last.info
rm -f last.info.tmp
fi

"Source tree has been modified" 부분은 자기 마음에 드는 메세지로 바꾸면 된다. 그리고 목소리는 시스템 환경 설정의 '말하기'에서 바꾸면 된다. 일정 시간마다 동작하게 하려면 cron이나 launchctl 을 사용하면 됨.

크리에이티브 커먼즈 라이센스
Creative Commons License
2009/06/27 13:13 2009/06/27 13:13
트랙백이 없고, 댓글이 없습니다.
ATOM Icon 이 글의 댓글이나 트랙백을 계속 따라가며 보고 싶으신 경우 ATOM 구독기로 이 피드를 구독하세요.

트랙백을 보내세요

트랙백 주소 :: https://forest.nubimaru.com/trackback/2041267