sak Posted June 6, 2005 Report Share Posted June 6, 2005 Hello, I have recently started evaluating macro express for our documentation build automation. Our docs are built as a part of the main product build. Most of the components are built using make and for doc which is in "Robohelp HTML" we use a macro which basically simulates the build from the robohelp gui since RoboHelp HTML does not have a command line build option for XPJ project files. The issue we are having is that the macro passes back the control to the next command in the build batch file almost immediately after starting the macro and does not wait for all the commands to be executed. This creates a problem for build logging since all the build processes write to a single build log file. Example of batch file nmake # Builds Visual Studio project meproc /F%R1BUILD%\robohelp.mex /Amacro_term /B /EN # MAcro for robohelp RunEslBatch # Frame Script for building framemaker project. First nmake runs and when complete passes control to the macro which executes and immediately passes control back to the batch file which start the nexct commnd - RunEslBatch ,and now I have 2 build processes running simultaneously. Is there a way to make the maco not pass control back to the batch file till is completed ( Error or Success ). I have tried adding the macro command to another batch file and calling that batch file from the first one and I even tried the start /wait windows command but none seem to work. I hope this forum can provide me some ideas on how to accomplish this. In the build I have may commands which start GUI's like Framemaker and Powerbuilder . but they all pass control to the next commnd in the batch file only after they have completed execution. Thanks Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.