Forum > General
How to compile project from script
(1/1)
Packs:
How to compile project from script or bat file
cdbc:
Hi
Hmmm, try 'LazBuild'...
Regards Benny
paule32:
in the Lazarus Settings for the current Project, youi can find a Option: "All Options".
Copy this Text and place it in a Bash shell Script.
- dont forget to set a sheba !
- dont forget to add a backslash after each optione line \
like:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---#!/bin/bashfpc <the options goes there> \ <other option goes there> \ ...
MarkMLl:
--- Quote from: paule32 on March 15, 2025, 11:20:04 am ---in the Lazarus Settings for the current Project, youi can find a Option: "All Options".
Copy this Text and place it in a Bash shell Script.
- dont forget to set a sheba !
--- End quote ---
First, it's a shebang, not a sheba.
Second, you're assuming that OP's using Linux or some other variant of unix. I believe that in actual fact he's using Windows, but more fool him for not giving people enough info to answer his question.
--- Quote ---- dont forget to add a backslash after each optione line \
like:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---#!/bin/bashfpc <the options goes there> \ <other option goes there> \ ...
--- End quote ---
You don't need any of that crap, since lazbuild picks up the options from the .lpi file: see the earlier answer.
MarkMLl
Navigation
[0] Message Index