- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I'm wanting to keep track of software builds. What I do on other platforms, is run an executable that increments a number stored in a file called version.h. Thus the executable reads the current number, increments it by 1 and then writes it back. Then in my code, I read the number as a string from that header file. I need to run the executable everytime I build my project. (I'm sure there must be place to specify any command lines to be executed before/after building the project) I'm using the NIOS IDE. Does anybody have any suggestions??? Regards, TyroneLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Search for topic "touch file"
This shows how to add a make file that will run the commands of your choice on every build. I use it to update the build time and date in my source code.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Select project/properties from menu (or by right clicking your your project). In the properties select Builders and add a new builder before "altera generated makefile builder'". You can specify any command you like and your command is executed at every build before altera makefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by keijo@Jun 1 2006, 07:45 AM select project/properties from menu (or by right clicking your your project). in the properties select builders and add a new builder before "altera generated makefile builder'". you can specify any command you like and your command is executed at every build before altera makefile.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15740)
--- quote end ---
--- Quote End --- Thanx keijo, It seems to work great. Only thing is that when I rebuild it seems like the .EXE is runs twice as my version number increments by 2 everytime. It's not critical though, as long as I have something for now! Cheers, Tyrone
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page