编译安装:
分别编译安装apr,apr-util,neon(省略make, make install)
- ./configure --prefix=/opt/apr
- ./configure --prefix=/opt/apr-util --with-apr=/opt/apr
- cd neon-0.29.6/
- ./configure --prefix=/opt/subversion176/neon
- ./configure --prefix=/opt/subversion176 --without-berkeley-db --with-apxs=/opt/lamp/apache/bin/apxs --with-apr=/opt/apr/ --with-apr-util=/opt/apr-util/ --with-neon=/opt/subversion176/neon
- /opt/subversion176/bin/svn co http://x.x.x.x/abc abc
- 另Swith分支方法
/opt/subversion176/bin/svn sw http://x.x.x.x/abc/branch/src abc
原svn1.6导出代码更新为1.7svn方法:
制作脚本 newsvn.sh
- #/bin/bash.sh
- url=`/usr/bin/svn info $1 |grep URL |awk '{print $2}'`
- cp -Rp $1 $1.cp
- find $1.cp -name ".svn" |xargs rm -rf
- /opt/subversion176/bin/svn co $url $1.176
- cp -Rp $1.176/.svn $1.cp/
- /opt/subversion176/bin/svn info $1.cp
- #mv /usr/bin/svn /usr/bin/bak.svn
- #ln -s /opt/subversion176/bin/svn /usr/bin/svn
转载于:https://blog.51cto.com/zzlamp/1019932