#!/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
#!/bin/bash
while read a<&3
do
var=` echo $a |awk '{print $4}'`
folder=${var%/*}
cleartool co -nc $folder
echo `$a `
done 3
#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
阅读(1964) | 评论(0) | 转发(0) |