Re: Re[4]: mmc patch
David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Tue, 28 Jan 2003 13:47:55 -0500
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, January 28, 2003, at 01:21 PM, Cyb.org wrote: > Hello Cory, > Tuesday, January 28, 2003, 4:31:04 PM, you wrote: >> On Tue, Jan 28, 2003 at 10:30:09AM -0500, David Hakim wrote: >>> 3) I lied :) This is in fact a multi-part question: >>> 3a) If both -i and -I <path> is specified what should happen ? >>> 3b) If only -I <path> is specified what should happen ? >> The script should exit immediately with a "usage:" message. People >> need to >> know when they are doing something wrong so that they do not continue >> to do >> it in the future. > > I thought about this: > > 1. mmc -n borg -i file.moto > compile module borg and install into libexec dir and asks if existing > module should be replaced Ok ... although I don't know about the whole interactive mode thing ... it makes mmc tougher to use in other scripts. I think unless -f is present we shouldn't ask the user anything ... just tell him he should try again with -f. > 2. mmc -n borg -I /home/borg/modules/ file.moto > compile module borg and install into /home/borg/modules/ and asks if > existing module should be replaced This sounds good ... same point about interactive mode though. > 3. mmc -n borg -i -I /home/borg/modules/ file.moto > compile module borg and install into libexec dir AND > /home/borg/modules/ and asks if existing module should be replaced I'm still not sure about this ... should multiple -I options be allowed as well ? > 4. mmc -n borg > Usage: [Yojimbo ;) ] Oh my ... is that a reference to the comic book ? We have achieved true Nerdvana :) > 5. mmc -n borg -d > compile module borg and leave it in /tmp/<mod name> No ./ install ? > 6. mmc -n borg -f -i -I /home/borg/modules/ file.moto > compile module borg and install into libexec dir AND > /home/borg/modules/ AND overwrites modules with the same name in both > directories > Still not sure about the multiple install locations / flags ... I think I defer to Cory here -Dave > This is how I see this now. :) > > Cyb.org > >