I have some linux environment variables(made by my CI) that are dynamic(build number and svn commit message), what's the best way to let the application print these values at application start?
I am thinking of making a shell script thats run before make that inserts variables into the code.
Is there a better way?
Need some help
-
- Site Admin
- Posts: 1986
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Need some help
Make can run shellscripts quite happliy, you can either create a target to generate a header file with the appropriate variables or extend CFLAGS with the -D options you want.
Re: Need some help
Okay, will try that!
Thanks!
Thanks!
Who is online
Users browsing this forum: No registered users and 1 guest