从 Starteam 中 Checkout 出每个文件,在将每个文件的Commit Log 导出为扩展名为 .jxlog 的文件。 导出的 log 被应用程序 steam2cvs 分析并生成脚本,用于完成文件从 starteam 向 cvs 迁移。
# cd ~jiangxin/work/project # st -qq co # for i in `find . -type f -exclude "CVS"`; do i=${i#./}; st log $i >$i.jxlog; done
复杂一些的脚本:
#!/bin/sh
cd <PATH>
xxx=0
for i in `find . -type f`; do
if echo $i | grep -w -e "CVS" -e ".jxlog" -e ".jxsh"; then
continue
fi
j=${i}.jxlog
if [ -f $j ]; then
continue
fi
i=${i#./}
st log $i >$i.jxlog.tmp
mv -f $i.jxlog.tmp $i.jxlog
xxx=`eval "expr $xxx + 1"`
echo "$xxx : $i"
done
Copyright © 2006 WorldHello 开放文档之源 计划 |