Hi list,
for my Hollywood extension for Cubic IDE I am programming a compiler frontend with Fabios SCUILib (thanks, mate!
Code: Select all
Execute("Hollywood "..sf.value.." -compile ..........)
Thanks a lot in advance!
Micha
Code: Select all
Execute("Hollywood "..sf.value.." -compile ..........)
No, that's not possible. But you can simply check if the executable-to-be-created exists after Execute() returns. If it doesn't exist, then Hollywood failed, obviously. If it's there, everything went fine... the GUI that comes with Hollywood does it exactly the same way IIRCHi list,
for my Hollywood extension for Cubic IDE I am programming a compiler frontend with Fabios SCUILib (thanks, mate!). This frontend starts the Hollywood compiler for all plattforms that are selected to have an exe for. I start the compiling process with
Now, is there a value that Hollywood returns in case of successfully compiling the source and in case of not doing it? And: Is this value passed through to the Execute command so I can evaluate that in my Hollywood script?Code: Select all
Execute("Hollywood "..sf.value.." -compile ..........)
Yep, I also had this idea. The command in Hollywood is GetFileAttributes(), but I also need to get this information with ARexx! Anyone knows how to do it with ARexx?In this case you can check the creation date, if I remember correctly there is a command to check the creation date of a file but unfortunatly I don't have Hollywood docs with me so I can tell you the command name ^_^
Yeah, also good idea. Thanks for that!Alternatively you can use a separate folder after all operations has finished, something like: - Compile your script - Check if executable has been created - If yes move it to an other folder, if no notify an error You can achieve your goal clearing your working folder before starting with the compile process...
Definitely! So if anyone has the ARexx syntax ...Anyway I think that checking the creation date is more simple and you can even prompt the user saying him that a previous version is already compiled "Do you want to move it to another directory or proceed with overwriting it?"