1833827 Members
2369 Online
110063 Solutions
New Discussion

Re: Need Script

 
CRAZY SANTHOSH
Occasional Advisor

Need Script

Hi Folks,

I need a script to add what string to my binary.

Example: what nagios
output: $Nagios A.08.00-2.5 $

where i got this when i added wht_version.h into .c file which builds the binary nagios....

Is there any compiler option or any automated script which does the same ...

Thanks once again

--Regards
Crazy Santhosh

what_versio.h
#ifndef _WHAT_VERSION_STRING_
#define _WHAT_VERSION_STRING_
static const char hpux_rcsid[] =
"\100(#)$Nagios A.08.00-2.5 $";
#endif


2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: Need Script

Hi:

The manpages for 'what' offer you the insight.

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Need Script

HP compilers have a pragma:
#pragma versionid "..."

Why did you want an automated script? To add it after you have linked? (There isn't any.)