[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Rescue flavor improvements



On Sun, Apr 27, 2008 at 08:27:33PM -0300, Tiago Bortoletto Vaz wrote:
> On Sun, Apr 27, 2008 at 11:12:05PM +0100, Alex Owen wrote:
> > Can we AND and OR these conditions.
> > 
> > 
> > I guess OR is like this:
> > 
> > #if ARCHITECTURE amd64
> > #include <stuff>
> > #endif
> > #if MODE ubuntu
> > #include <stuff>
> > #endif
> 
> This works.
> 
> > Does nesting the if's work too?  to AND the conditions like this:
> > 
> > #if ARCHITECTURE amd64
> > #if MODE ubuntu
> > some-ubuntu-amd46-package
> > #endif
> > #endif
> 
> This doesn't work (yet). Maybe Chris is working on this, not sure.

What exactly is the proposed syntax?

cpp's syntax does not allow string values to variables.
And if we don't want to use cpp's syntax, we might as well using '#' for
anything other than a comment.

Also: should it be possible to use any environment variable, or just one
from a pre-selected list?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



Reply to: