因为Beyond Compare 2这个软件不但比较功能强大,而且可以编写脚本。
脚本如下:
option confirm:yes-to-all
 
load current prev
criteria binary
expand all
select left.diff left.orphan
copyto path:relative upgrade
 
FOLDER-REPORT layout:summary output-to:output.txt

脚本文件名为 build-upgrade-package.txt。

使用方法:
首先建立一个名为 release 的目录,然后在其中建立 current、prev 和 upgrade 三个目录。current 存放软件的新版本文件,prev 存放软件的老版本文件,upgrade 则存放新版本中修改过和增加的文件(当然了,这个工作由我们的脚本来完成)。
准备工作做好以后,启动命令行,用 ‘cd’ 命令切换到 release 目录。然后输入下面的命令:
bc2.exe @build-upgrade-package.txt

脚本执行完毕后,在 upgrade 目录中就可以看到需要的文件了。而 release 目录下还会生成一个 output.txt,是比较结果。

Written on 2006/10/10 by Doctor - Reads: 1555 Comments: 0

发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 不区分大小写