Personal tools
User menu

Difference between revisions of "Buildrev"

From Francois Louw

Jump to: navigation, search
Line 1: Line 1:
 +
[http://aeif.info/files/buildrev/BuildRevision20121120.zip Downloan Windows executable with source] built with MinGW
 +
 
This application is quite handy and small. It is coded in simple C. Every time it runs it reads the given header file and increments the number.
 
This application is quite handy and small. It is coded in simple C. Every time it runs it reads the given header file and increments the number.
  
 
Please note that this program is very basic, and apart from file checking it does not do any other checking.
 
Please note that this program is very basic, and apart from file checking it does not do any other checking.
  
Usage of the program is
+
Usage of the program is 'buildrev build.h'
 
+
<source lang="dos">
+
buildrev build.h
+
</source>
+
  
 
The format for the header file is as follows:
 
The format for the header file is as follows:
 
 
<source lang="c">
 
<source lang="c">
 
#define BUILD 1
 
#define BUILD 1
 
</source>
 
</source>
  
The #define and the BUILD is not important and can be changed to <source lang="c">int build= 1</source> if needed.
+
The #define and the BUILD is not important and can be changed to  
 +
<source lang="c">int build= 1</source>
  
The code looks for the third field (separated by space) and increases that value.
+
'The code looks for the third field (separated by space) and increases that value.'
  
 
Here is the [http://aeif.info/files/buildrev/buildrev.c code] released under the [http://aeif.info/gpl-3.0.txt GPL 3 license]
 
Here is the [http://aeif.info/files/buildrev/buildrev.c code] released under the [http://aeif.info/gpl-3.0.txt GPL 3 license]
Line 75: Line 73:
 
}
 
}
 
</source>
 
</source>
 +
 +
The code is pretty straightforward and does not need much explanation.

Revision as of 17:39, 20 November 2012