RE: [Mon-devel] Today's Mon 1.1 nits
Brought to you by:
trockij
From: Peter W. (MO/EMW) <pet...@er...> - 2005-02-17 10:45:14
|
Would it not be nice to use the -M options to specify which preprocessor to use... # diff mon mon.new 201c201 < getopts ("fhlMSvda:A:b:B:c:D:i:L:m:O:o:p:P:r:s:t:", \%opt); --- > getopts ("fhlM:Svda:A:b:B:c:D:i:L:m:O:o:p:P:r:s:t:", \%opt); 818c818 < if ($opt{"M"} || $CF =~ /\.m4$/) --- > if ( exists($opt{"M"}) || $CF =~ /\.m4$/) 819a820 > my($m4) = $opt{"M"} || "m4"; 821c822 < if (!open (CFG, "m4 $CF |")); --- > if (!open (CFG, "$m4 $CF |")); /Peter (sorry about the duplicate Ed) > -----Original Message----- > From: mon...@li... > [mailto:mon...@li...] > Sent: den 17 februari 2005 01:41 > To: mon...@li... > Subject: [Mon-devel] Today's Mon 1.1 nits > > > This is a problem in Mon 1.0 also - that extra backslash > shouldn't be there: > > -if ($^O eq "linux" || $^O =~ /^(open|free|net)bsd\$/ || > $^O eq "aix") > +if ($^O eq "linux" || $^O =~ /^(open|free|net)bsd$/ || $^O > eq "aix") > > Without this fix syslog goes to UDP (and therefore gets lost) > on the BSDs. > > ------------------------ > > This is a feature I added to allow the user to define a different path > for the M4 processor. I'm probably the only person who needs this, so > it doesn't need to go into 1.0: > > - if (!open (CFG, "m4 $CF |")); > + if (!open (CFG, > + (exists($ENV{'MON_M4'}) ? > $ENV{'MON_M4'} : "m4") . " > $CF |") ); > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Mon-devel mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/mon-devel > |