Page 1 of 1

Need some help

Posted: Sat May 19, 2012 8:05 pm
by lemmymet
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?

Re: Need some help

Posted: Sun May 20, 2012 3:25 pm
by WinterMute
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

Posted: Mon May 21, 2012 6:39 pm
by lemmymet
Okay, will try that!
Thanks!