Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatically increase build number

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
hey,
I am writing an operating system in C, and I am wondering how I can write an include file, or a .c file for my kernel that will automatically increase the build number on each compile. My compiler is gcc, and im running rh linux 7.2. any suggestions, would be appreaciated.
shaun
 
hi sxper,

instead of writing a c code for this.. u may want to write a shell script in Makefile which does just that ..

hope that helps..
shail
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top