Including Processes
[posted 2001/11/16]
Finally, I was seeing an obscure error in the auto-generation of macros/files_pikt_log_macros.cfg involving including processes. This preprocessor directive
#include <macros/files_pikt_log_macros.cfg> [/pikt/bin/pikts < /pikt/lib/configs/macros/logs_pikt_macros.cfg | awk '/^#/ {print $0; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}']
was producing a files_pikt_log_macros.cfg with duplicate entries. The "solution" was to not update that file but rather to just get live update from the
/pikt/bin/pikts < /pikt/lib/configs/macros/logs_pikt_macros.cfg | awk '/^#/ {print $0; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}'
command each time piktc is run. I did this by leaving out the "<macros/files_pikt_log_macros.cfg>" part (and commenting out the older, broken version for future reference):
#include [/pikt/bin/pikts < /pikt/lib/configs/macros/logs_pikt_macros.cfg | awk '/^#/ {print $0; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}'] //#include <macros/files_pikt_log_macros.cfg> [/pikt/bin/pikts < /pikt/lib/configs/macros/logs_pikt_macros.cfg | awk '/^#/ {print $0; next}; /^[A-Z]/ {print " "; next}; {print $1 " " $2}']
I think I know what's going on here, but it will take some deep debugging to solve.
For more examples, see Developer's Notes.