Hi ,
I made a little tool for my office , and I think it could interest some of you . Here's the readme.txt :
Description :
This command line tool is used to automatically archive in rar format a complete project and increments the build number of a version file that you can use in your project. The rar archive contains the version number and the build number.
How to Use :
Archive [string 1] [string2] [version file path] [source path of files to archive] [destination path of files to archive] [name of output archive]
the string1 and string2 have to be the same in order to archive be executed. It can be useful from an Ide like MicroVision from keil, where you can execute user tools before/after compile/build and you can pass some args like the project name.
example : Archive project.uv2 %F C:\sources\project\build.h C:\sources\project C:\sources\backup project
in this case µVision replaces %F with the project name when you're building the project. If the name is project.uv2 then the archive will be created and build number increased. This is useful to avoid increase build number when you're just compiling some files or to avoid increase the build number each time a file is compiled. Usually, you just want to increase the build number when you're building the complete project.
Requirements :
Before using this utility a version file has to be created once, with a starting build number (usually 1 :) The version file has to be formatted like that :
#define _VERSION_A_ x #define _VERSION_B_ y #define _VERSION_C_ z #define _BUILD_ 1
where x,y,z are the version numbers .
Moreover you must have winrar (in fact rar.exe installed wih winrar) , with rar.exe set up in windows PATH environnement variable. The archive.exe has to be set up too in the PATH environnment variable.
Let me know if you're interested and I'll upload it somewhere.
You're right. The same type of tool but not the same.