文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>cleartool howto import package into vob

cleartool howto import package into vob

时间:2010-08-05  来源:cspyb


#!/bin/bash
DEST=/vobs/android/src/nec/hal/ # the dest to import to
PKG=sec_test   # the package name
BRANCH=sec_iw_sec_testcode  #the branch name import onto
deepls() {
pushd $1
  for x in `ls`
  do
  tail=${PWD}/$x
  tail_1=${tail#/tmp/}  #/get the sufix for mkbranch
  if [ -f $x ]; then
     #touch  ${DEST}/${tail_1}
     cleartool mkelem -nc -nco ${DEST}/${tail_1}
     cleartool mkbranch -nc ${BRANCH} ${DEST}/${tail_1}
     cp -rf ${PWD}/$x ${DEST}/${tail_1}
     cleartool ci -nc ${DEST}/${tail_1}
  fi
  if [ -d $x ]; then
      cleartool mkdir  -nc -nco  ${DEST}/${tail_1}
      cleartool mkbranch -nc ${BRANCH} ${DEST}/${tail_1}
      deepls "$x"
      cleartool ci -nc ${DEST}/${tail_1}
      popd
  fi
  done
}
#cleartool mkdir -nc -nco ${DEST}/${PKG}   # mkdir(/main/0) first
 
cleartool mkbranch -nc ${BRANCH} ${DEST}/${PKG} # make the first branch
deepls $1

相关阅读 更多 +
排行榜 更多 +
开心动动脑安卓版 v1.0 手机版

开心动动脑安卓版 v1.0 手机版

休闲益智 下载
不良人破局手游下载

不良人破局手游下载

角色扮演 下载
云海之下手游下载

云海之下手游下载

角色扮演 下载