::: Zany's Homepage ::: Zany Wiki | »çÀÌÆ® ÅëÇÕ °Ë»ö
 
 
 

[cygwin] Subversion ¼­¹ö ¼³Á¤

°Ô½ÃÆÇ
Windows Server
ÀÛ¼ºÀÚ
helix
ÀÛ¼ºÀÏ
2015-09-25 09:59:39
ÀÐÀº¼ö
1758
ÆòÁ¡
   
Ç¥½Ã¿É¼Ç
HTML»ç¿ë | ÀÚµ¿BRűנ| °ø¹é¹®ÀÚÇã¿ë | °¡¿îµ¥Á¤·Ä | °íÁ¤Æø±Û²Ã | ÀÚµ¿URL¸µÅ© | ¸¶¿ì½º¼±ÅÃ
http://grokcode.com/115/how-to-setup-a-windows-svn-repository/


.bash_profile
SVN_ROOT=/home/svn

svn repository ±¸¼º
> svnadmin create $SVN_ROOT

svn server ±âµ¿ (µ¥¸ó ¸ðµå)
> svnserve -r $SVN_ROOT -d

svn server PID È®ÀÎ
> ps -ef | grep svnserve | awk '{printf($2);}'



------------------------------------------------------
shell script : svn-ps
------------------------------------------------------
#!/bin/sh

PID=`ps -ef | grep svnserve | awk '{printf($2);}'`
echo $PID


------------------------------------------------------
shell script : svn-start
------------------------------------------------------
#!/bin/sh

PID=`svn-ps`

if [ -z $SVN_ROOT ]; then
    echo "There is no SVN_ROOT environment variable."
    exit 1
fi

if [ ! -z $PID ]; then
    echo "svnserve process is already exist. pid $PID."
    exit 1
fi

svnserve -r $SVN_ROOT -d

sleep 2

PID=`svn-ps`

if [ -z $PID ]
then
    echo "svnserve is started pid $PID."
else
    echo "svnserve process does not exist, check svn-ps"
fi

------------------------------------------------------
shell script : svn-stop
------------------------------------------------------
#!/bin/sh

PID=`svn-ps`

if [ -z $PID ]; then
    echo "There is no svnserve PID."
    exit 1
fi

kill $PID

sleep 1

PID=`svn-ps`

if [ -z $PID ]
then
    echo "svnserve stopped."
else
    echo "still exist svnserve pid $PID."
fi

 °Ô½ÃÆÇ ±Û ¸ñ·Ï
No Subject Poster Hits Posted
14429 helix 945 2019-03-28 15:43:24
14298 helix 1730 2018-04-19 13:49:41
14276 helix 3940 2018-03-04 06:14:09
14084 helix 1334 2017-06-04 13:16:54
14063 helix 1522 2017-05-07 18:19:12
helix 1758 2015-09-25 09:59:39
8736 helix 1727 2014-07-02 09:29:52
8735 helix 1692 2014-07-01 15:00:28
7950 helix 2386 2014-03-27 11:11:37
7929 helix 1827 2014-03-26 10:50:49
7630 helix 4329 2014-02-22 16:32:52
ÄÚ¸àÆ®
ÀÛ¼ºÀÚ
                       
 
zany.kr
  Copyright ¨Ï 2002-2010 Zany's Programming Lab. All Rights Not Reserved.
temporary This Page loads on 0.016 Secs