#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: `basename $0` svn_branch_url" >&2
exit 1
fi
cd `dirname $0`/..
BASE=`pwd`
echo "$BASE"
#sh $BASE/bin/killws
rm -rf $BASE/src/XXXXX/*
rm -rf $BASE/src/XXXXX/.svn
svn co $1 $BASE/XXXXX
echo svn checkout code from $1 OK!!!!!!!
将svn地址作为参数传递给脚本
如下$ sh XXX.sh svn_address