passing params to startupitem.executable / portfile.7
James, I've got the startupitems documented as best I can. http://geeklair.net/new_macports_guide/#reference.portfile But I have one remaining question. How could I pass parameters such as "-d 10 -t 600" to a startupitem.executable? I'm not sure how to do that. Also, I think the portfile.7 man page needs to be split up because it is getting so big. I propose splitting portfile.7 into four parts. What do you think? portfile-global (global vars & keywords) portfile-phases (keywords related to phases) portfile-startupitems portfile-tcl (Tcl extensions) Mark
Hi Mark, On Oct 27, 2007, at 6:27 PM, markd@macports.org wrote:
James,
I've got the startupitems documented as best I can. http://geeklair.net/new_macports_guide/#reference.portfile
But I have one remaining question. How could I pass parameters such as "-d 10 -t 600" to a startupitem.executable? I'm not sure how to do that.
I'm pretty sure that if you specify this like: startupitem.executable mybinary -d 10 -t 600 that it will work correctly. In other words, don't do the following: startupitem.executable "mybinary -d 10 -t 600"
Also, I think the portfile.7 man page needs to be split up because it is getting so big. I propose splitting portfile.7 into four parts. What do you think?
I guess I'm open to this. I'd love to hear comment from others, however, And would there still be a portfile.7 manpage that gave general overview and gets people started? James
portfile-global (global vars & keywords) portfile-phases (keywords related to phases) portfile-startupitems portfile-tcl (Tcl extensions)
Mark
James Berry <jberry@macports.org> writes:
I'm pretty sure that if you specify this like:
startupitem.executable mybinary -d 10 -t 600
that it will work correctly. In other words, don't do the following:
startupitem.executable "mybinary -d 10 -t 600"
I'll try that, thanks.
Also, I think the portfile.7 man page needs to be split up because it is getting so big. I propose splitting portfile.7 into four parts. What do you think?
I guess I'm open to this. I'd love to hear comment from others, however, And would there still be a portfile.7 manpage that gave general overview and gets people started?
Yes, I think there still should still be a portfile.7. I've started to split them jus tto see how it would look. It is an experiment at this point and hopefully soon I'll have something that people can look at and give judgement on. Mark
On 28.10.2007, at 16:51, markd@macports.org wrote:
James Berry <jberry@macports.org> writes:
I'm pretty sure that if you specify this like:
startupitem.executable mybinary -d 10 -t 600
that it will work correctly. In other words, don't do the following:
startupitem.executable "mybinary -d 10 -t 600"
I'll try that, thanks.
Also, I think the portfile.7 man page needs to be split up because it is getting so big. I propose splitting portfile.7 into four parts. What do you think?
I guess I'm open to this. I'd love to hear comment from others, however, And would there still be a portfile.7 manpage that gave general overview and gets people started?
Yes, I think there still should still be a portfile.7. I've started to split them jus tto see how it would look. It is an experiment at this point and hopefully soon I'll have something that people can look at and give judgement on.
Pretty neat! I think this is a very good idea -- especially since the XML formatting takes a lot of extra-space anyway. Good job! :) -Markus --- Markus W. Weissmann http://www.mweissmann.de/
Weissmann Markus <mww@macports.org> writes:
Also, I think the portfile.7 man page needs to be split up because it is getting so big. I propose splitting portfile.7 into four parts. What do you think?
I guess I'm open to this. I'd love to hear comment from others, however, And would there still be a portfile.7 manpage that gave general overview and gets people started?
Yes, I think there still should still be a portfile.7. I've started to split them jus tto see how it would look. It is an experiment at this point and hopefully soon I'll have something that people can look at and give judgement on.
Pretty neat! I think this is a very good idea -- especially since the XML formatting takes a lot of extra-space anyway. Good job! :)
Good to hear the idea has some support. As far as the XML formatting, it has proved to be difficult to to get man pages from them that are formatted well, and I'm not sure they are formatted all that well now. I was surprised at the difficulties we've run into, and I see why most people still use troff. But I do think that having a single source for the man pages and docs and the resulting accuracy and ease of keeping updated docs trumps any of the difficulties. That's my view anyway. Mark
On 29.10.2007, at 16:37, markd@macports.org wrote:
Weissmann Markus <mww@macports.org> writes:
Also, I think the portfile.7 man page needs to be split up because it is getting so big. I propose splitting portfile.7 into four parts. What do you think?
I guess I'm open to this. I'd love to hear comment from others, however, And would there still be a portfile.7 manpage that gave general overview and gets people started?
Yes, I think there still should still be a portfile.7. I've started to split them jus tto see how it would look. It is an experiment at this point and hopefully soon I'll have something that people can look at and give judgement on.
Pretty neat! I think this is a very good idea -- especially since the XML formatting takes a lot of extra-space anyway. Good job! :)
Good to hear the idea has some support. As far as the XML formatting, it has proved to be difficult to to get man pages from them that are formatted well, and I'm not sure they are formatted all that well now. I was surprised at the difficulties we've run into, and I see why most people still use troff. But I do think that having a single source for the man pages and docs and the resulting accuracy and ease of keeping updated docs trumps any of the difficulties. That's my view anyway.
For the esthetics, perhaps we can do something like adding a command to port(1) that opens a generated html-file in a browser (via `open'), like 'port help portfile' -- or just also include a html- version of the "manpages" with port(1). -Markus -- Markus W. Weissmann http://www.mweissmann.de/
Markus Weissmann <mww@macports.org> writes:
Good to hear the idea has some support. As far as the XML formatting, it has proved to be difficult to to get man pages from them that are formatted well, and I'm not sure they are formatted all that well now. I was surprised at the difficulties we've run into, and I see why most people still use troff. But I do think that having a single source for the man pages and docs and the resulting accuracy and ease of keeping updated docs trumps any of the difficulties. That's my view anyway.
For the esthetics, perhaps we can do something like adding a command to port(1) that opens a generated html-file in a browser (via `open'), like 'port help portfile' -- or just also include a html- version of the "manpages" with port(1).
That sounds like an interesting idea. Mark
participants (4)
-
James Berry
-
markd@macports.org
-
Markus Weissmann
-
Weissmann Markus