Re: Re[2]: mmc patch

David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]> Tue, 28 Jan 2003 03:57:23 -0500
Newsgroups gmane.comp.lang.moto.devel
Message-ID <[email protected]>
On Tuesday, January 28, 2003, at 12:40  AM, Cyb.org wrote:

> Hello David,
> Monday, January 27, 2003, 7:47:37 PM, you wrote:
>>         mmc -n mysite /home/mysite
>>         mmc -i -n mysite /home/mysite
>>         mmc -i <path> -n mysite /home/mysite
>> which would drop off mod_mysite.so in whatever path was specified ?
>> I think that might be kinda cool too :)
>> -Dave
>
> Since MMC is shell script it can't (man sh) have arguments with or
> wirthout values at the same time. There can be only one... ;) ...soooo

Oh ... thats too bad ... shows what I know about shell scripts :)

> I suggest to create:
>   -c        - install into current dir
>   -l        - install into libexec
>   -p [path] - install into specified path
> or even rewrite MMC in C. What do you think?
>
Funny ... mmc used to be in C ... a long long time ago :) But I made 
the decision that any app whose sole responsibility was to call a bunch 
of other apps should probably be written in a shell scripting language 
... if only for ease of maintenance. I guess a -p option would work ... 
I'm wondering though if we should just keep -i without the -p option 
for now and maybe just rewrite it in perl down the road :) I'd hate to 
make a sub-optimal interface decision here because of limitations in 
the language mmc is written in.  What do you guys think ?

-Dave


> Cyb.org
>
>