[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: gnetlist in a Makefile



On Sat, Feb 05, 2005 at 09:45:31PM +0100, Peter Kaiser wrote:
> 
> Hello Carlos
> 
> <snip>
> 
> > > I think it'd be nice to have the backend returning some value depending
> > > on the number of errors and warnings, so it would be easy to do that
> > > kind of tests in Makefiles.
> > >
> > > So maybe return a different value for each possible situation:
> > > 	- No errors.
> > > 	- Only warnings.
> > > 	- Errors.
> >
> > agreed.  Using (error "errorstring") in the scheme code you can
> > make gnetlist error out with a non-zero error code, but I'm not sure
> > how to signal to gnetlist that there are warnings and it should return
> > that.
> >
> > What do you think of having a command line option which prevents warnings
> > from giving an error code?
> 
> I agree too. As far as I understand, make stops when a program returns a 
> nonzero exit code. So the user must decide somehow, whether a warning should 
> stop execution or not. May be it's easier to put a flag in the scheme code.

that is correct.  when a program returns a nonzero exit code make stops.
Thats exactly why I thought it would be good to have a flag to say 'warnings
don't give nonzero exit codes'.
 
-Dan

--