Re: Trying to understand preprocessor
- Posted by jimcbrown (admin) Feb 09, 2013
- 1385 views
moskito_x said...
That does not explain why "eui thedate.dex" does not work? without a pre-processor hook defined.
It's in the eu.cfg "-p dex:datesub.ex:-f %m/%d/%Y"
D:\euphoria-405\demo\preproc>eui thedate.dex Can't open 'D:\euphoria-405\demo\preproc\thedate.dex'
Are you sure the file was really there?
moskito_x said...
Weird. You left off the -p there, btw.
moskito_x said...
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\euphoria-405\demo\preproc>eui thedate.dex 2013-02-09 D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.dex 2013-02-09
Those worked.
moskito_x said...
D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.ex The date this was run is @DATE@
That wasn't suppose to work, as "-p eui" and ".ex" don't match.
moskito_x said...
D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.dex 2013-02-09
That otherwise wasn't suppose to work either - but it did thanks to your eu.cfg
moskito_x said...
In eu.cfg: after I delete the line "-p dex:datesub.ex:-f %m/%d/%Y"
MAGIC : What happened here?
Thanks moskito x
D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.dex @DATE@
That wasn't suppose to work - "-p eui" and ".dex" don't match.
moskito_x said...
D:\euphoria-405\demo\preproc>eui -p ex:datesub.ex thedate.ex The date this was run is 2013-02-09 D:\euphoria-405\demo\preproc>
That worked, because "-p ex" and ".ex" match.