[Linux]A Shell to Export Source From SVN
2011-09-08 15:14
232 查看
#!/bin/bash DIR_BASE=/home/developers/tony/ SVN_BASE=http://svn.designreactor.com/repos/CISCO_CEO/Cisco_CEO/tags if [ "$#" != 1 ] then echo "Parameters error. 1 parameter is needed." echo "Usage: deploy_stage.sh SVN_URL" else SVN_URL=$SVN_BASE/$1 DIR_PATH=$DIR_BASE/$1 echo $SVN_URL svn export "$SVN_URL" "$DIR_PATH" cd "$DIR_PATH" ant -f build_stage.xml fi
At first, I use PATH, system point out svn: command not found, and actually PATH is PATH of environment, so I use DIR_PATH instead of PATH, it works very well now!
相关文章推荐
- 9 Steps to Install and Configure PostgreSQL from Source on Linux
- 【Linux】shell中svn报错:svn: Can't convert string from 'UTF-8' to native encoding:xxx
- Linux更新SVN版本遇到错误:svn: Can't convert string from native encoding to 'UTF-8'
- How to Compile Qt from Source Code on Linux
- How to Compile Linux Kernel from Source to Build Custom Kernel
- 在linux中svn下载文件时提示svn: Can't convert string from 'UTF-8' to native encoding:
- Use GRUB2 to Boot Linux(from grub manual)
- svn: Can't convert string from 'UTF-8' to native encoding 解决方法
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- linux:export, source命令
- linux使用svn update进行shell脚本提示用户密码
- Shell环境和变量生存期-export和source
- Use the Stack mehod and a temporary Stack to retrieve entries from the Stack source and add
- Maven + tomcat + svn +linux shell 快捷部署
- Why the volume so big after coping file from Linux to Windows?
- How to rebuild assemblies from the source code
- fastq to tasta using linux shell script
- CodeNinja-源码管理,从SVN迁移至Mercurial.From Subversion to Mercurial
- Citrix XenServer: Error code: INVALID_SOURCE Unable to Boot from CD/DVD
- [Linux] Enable ssh key authentication from one user on client to multiple users on server