Mail Archives: djgpp-workers/2003/02/01/09:43:10
Hello.
Here's my try for the documentation for the -stubparams parameter of
stubify.
Index: djgpp/src/stub/stubdocs.txi
===================================================================
RCS file: /cvs/djgpp/djgpp/src/stub/stubdocs.txi,v
retrieving revision 1.2
diff -p -u -r1.2 stubdocs.txi
--- djgpp/src/stub/stubdocs.txi 25 Jan 2003 12:30:42 -0000 1.2
+++ djgpp/src/stub/stubdocs.txi 1 Feb 2003 14:38:36 -0000
@@ -31,7 +31,7 @@ will provide additional debugging output
@chapter @command{stubify}
@pindex stubify
-Usage: @kbd{stubify [-v] [-g] files}
+Usage: @kbd{stubify [-v] [-g] [-stubparams=param[,param...]] files}
@command{stubify} is a utility that adds a DOS exectuable stub loader to the
front of a @acronym{COFF} image. The input program may be @acronym{COFF}
@@ -55,6 +55,13 @@ image containing only the stub, which ca
program in the same directory. This is used to simulate links, so
@code{argv[0]} can be used to change program behavior or create a small
alias to the other program.
+
+@item -stubparams=param[,param...]
+
+Pass @option{param[ param...]} to @command{stubedit} to tune the stub's
+parameters. Commas in @option{param[,param...]} are converted into
+spaces. See the documentation of @command{stubedit} (@pxref{stubedit})
+for which parameters that are available.
@end table
I also did some tiny adjustment(s?) to the help text in stubify so here's
that part of the patch again:
Index: djgpp/src/stub/stubify.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/stub/stubify.c,v
retrieving revision 1.8
diff -p -u -r1.8 stubify.c
--- djgpp/src/stub/stubify.c 23 Jan 2003 16:37:31 -0000 1.8
+++ djgpp/src/stub/stubify.c 1 Feb 2003 14:38:37 -0000
...
void print_help(void)
{
- fprintf(stderr, "Usage: stubify [-v] [-g] <program>\n"
+ fprintf(stderr, "Usage: stubify [-v] [-g] [%sparam[,param...] <program>\n"
"<program> may be COFF or stubbed .exe, and may be COFF with .exe extension.\n"
"Resulting file will have .exe\n"
"-v -> verbose\n"
"-g -> generate a stub\n"
+ "%sparam[,param...] -> pass param[ param...] to stubedit (commas are\n"
+ " converted into spaces); see stubedit documentation for what param can be\n"
"\nThis program is NOT shareware or public domain. It is copyrighted.\n"
"It is redistributable but only as part of a complete package. If you\n"
"have a copy of this program, the place that you got it from is\n"
- "responsible for making sure you are able to get its sources as well.\n");
+ "responsible for making sure you are able to get its sources as well.\n",
+ STUB_OPTIONS, STUB_OPTIONS );
}
Right,
MartinS
- Raw text -