mdk里面修改程序之后,添加修改记录(ModifyRecords.txt),每次都要将生成的bin修改为对应的版本号如Prj_1.0.1.1("1.0.1.1"保存在Version.c),这样比较麻烦
然后就发挥电工精神,自动完成修改bin的文件名,于是有了下文
使用VC6.0 纯C编写的控制台程序
命名为AutoRenameByVersion.exe
用法:
AutoRenameByVersion.exe C:\\China.Bin C:\\Version.c C:\\ModifyRecords.txt Prj_
介绍
1 从Version.c读取版本号,如"1.0.1.1"
2 将输入的China.bin重命名为Prj_1.0.1.1
3 检查ChinaProjectModifyRecords.txt里面有没有最新的"1.0.1.1"字符串,没有则提醒“注意:软件版本有改动,请及时添加修改记录,谢谢!”
4 自动添加修改记录模板
有图有真相


修改记录模板

mdk工程设置
AutoRenameByVersion.exe CompileOutput\BinaryOutput\Project.bin ..\User\Version.c ..\Log\ModifyRecords.txt prj_
