Re: [Autogen-users] easiest way to print a custom version string
Brought to you by:
bkorb
From: Bruce K. <bru...@gm...> - 2014-06-23 17:30:22
|
On 06/22/14 03:53, Nikos Mavrogiannopoulos wrote: > Hello, > I'd like to override the default version string Specify a "version-proc": http://www.gnu.org/software/autogen/manual/html_node/automatic-options.html#automatic-options third paragraph. :) You found "optionVersionProc", if you grep for that in the templates, you see this code: IF (exist? "version") =][= IF (exist? "version-proc") =] #define VER_PROC [= (get "version-proc") =][= ELIF (. guarded-test-main) =] #ifdef [=(. main-guard) =] # define VER_PROC optionVersionStderr #else # define VER_PROC optionPrintVersion #endif /* [=(. main-guard)=] */[= ELSE =] #define VER_PROC optionPrintVersion[= ENDIF guarded-test-main =][= ENDIF there is a version |