| Author |
Message |
|
|
Post subject: how to embed usage message in a binary?
Posted: Nov 03, 2009 - 11:40 AM
|
|
Active Member
Joined: Mar 09, 2007
Posts: 26
|
|
I want to embed both usage message and build properties message in my binary. How do I do that?
It would be good if some one can paste some sample source code snippets.
I do not want to use the sample.use file. Instead i want it to be baked inside my source code.
Ex:- I want to print the below for my test application binary.
# use myTestApp
myTestApp - sample test application
Options:
-c: configuration file path
-v: verbosity level
-l: log to stdout
# use -i myTestApp
NAME=myTestApp
DESCRIPTION=sample test app
DATE=2009/10/28
STATE=expt
USER=tester1
VERSION=0.1.1 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 18, 2009 - 03:14 PM
|
|
Active Member
Joined: Mar 02, 2006
Posts: 17
|
|
I did not succeed to do the same thing through source code, so I added a "version" target in makefile like this :
version : $(TARGET_NAME)
@echo add version
usemsg -i VERSION=V0.12.4.0 -i DISTRIBUTOR=yourstring $(TARGET_NAME) |
|
|
| |
|
|
|
 |
|
|
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group Credits |
|
|