Addendum:
should have used
instead ofCode:cmd /c build.bat
right from the start.Code:.\build.bat
Lzarus invoking cmd.exe works perfectly, the script executes as designed finally allowing me to use loops and other advanced syntax.
Addendum:
should have used
instead ofCode:cmd /c build.bat
right from the start.Code:.\build.bat
Lzarus invoking cmd.exe works perfectly, the script executes as designed finally allowing me to use loops and other advanced syntax.
This reminds me that I was thinking about drop makefiles from my Pascal projects and use sh/bat/cmd scripts instead. Since I've learned how to do conditionals in bat/cmd files it seems more possible.
No signature provided yet.
Since both sh and cmd have their own quirks, I tend to avoid them. sh is more usable than cmd though. At work I use python instead of either. But personally, I have simple sh/cmd scripts to just build a simple pascal executable which does the rest. With instafpc or so should be a lot easier to make setup/build scripts than with sh/cmd. I've found, especially when one is doing redundant things, that duplicating functionality accross sh or cmd is bothersome.
Existence is pain
I always forget that Pascal can be used as a shell script as well. I have to see how does it work on Windows though.
No signature provided yet.
Bookmarks