文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Shell Cleartool import

Shell Cleartool import

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

#!/bin/bash
 while read a<&3 && read b<&4
 do
 folder=${a%/*}
 folder_up=${folder%/*}
 folder_up_up=${folder_up%/*}
 if [[ -e $a && -e $b ]]; then
 cleartool co -nc $a
 cp -rf $b $a
 cleartool ci -nc $a
 echo 000 $a $b
 fi
 if [[ ! -e $a && ! -e $b ]]; then
 echo 111  $a $b
 #cleartool rmbranch -nc -f ${folder}@@/main/android_k32/
 fi
 if [[  -e $a && ! -e $b ]]; then
 #echo ${folder}
 cleartool co -nc ${folder}
 cleartool rm $a
 echo 222  $a $b
 fi
 if [[ ! -e $a &&  -e $b ]]; then
     if [ -d ${folder} ]; then
      cleartool co  -nc ${folder}
      cleartool mkelem -nc -nco $a
      cleartool co -nc $a
      cp -rf $b $a
      cleartool ci -nc $a
     else
         if [ -d ${folder_up} ]; then
         cleartool co -nc ${folder_up}
         cleartool mkdir -nc  ${folder}
         cleartool mkelem -nc -nco $a
         cleartool co -nc $a
         cp -rf $b $a
         cleartool ci -nc $a


         else
             if [ -d ${folder_up_up} ]; then
               cleartool co -nc ${folder_up_up}
               cleartool mkdir -nc ${folder_up}
               cleartool mkdir -nc  ${folder}
               cleartool mkelem -nc -nco $a
               cleartool co -nc $a
               cp -rf $b $a
               cleartool ci -nc $a
             else
               echo " ERROR"
             fi


         fi
      fi
     fi
 echo 333 $a $b
 #cleartool co -nc ${folder}
 fi

 done 3<vob_files.txt 4<org_files.txt

#!/bin/bash
 while read a<&3
  do
   var=` echo $a |awk '{print $4}'`
   folder=${var%/*}
   cleartool co -nc $folder
   echo `$a `


  done 3<neeklink.log

#cat ending_1.txt |grep "uNr"|grep -v ".git" |awk '{print $3}' >./vob_files.txt
#cat ending_1.txt |grep "uNr"|grep -v ".git" |awk '{print $4}' >./org_files.txt
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载