[Gambas-user] Gambas script to convert Projects to Executable scripts

Bruce Steers bsteers4 at gmail.com
Sat Feb 27 20:17:23 CET 2021


On Sat, 27 Feb 2021 at 17:43, Brian G <brian at westwoodsvcs.com> wrote:

> I don't know if anyone is interested but here is a gambas script
> which will take a simple project and convert it to an executable gambas
> script.
>
> Your project should only have a single module MMain or so, it can be any
> name as long as it is the startup
> and as many classes as you like.
> Example:
>
> ProjectToScript ~/Projects/MyProjectName  ~/bin
>
> Will read the project at ~/Projects/MyProject and output the Executable
> script named MyProject to the ~/bin directory
>
> It Can be executed by entering the following : ...if ~/bin is in your
> search path
> MyProject
>
> I have been using these generated scripts to stress test scripter.
>
> "Failure is the key to success;
>  each mistake teaches us something"  .. Morihei Ueshiba
> Brian G
>

Fantastic Brian, I was heading towards doing the same thing a long time ago
(i guess you remember)
I kinda moved onto other things but I still find gambas scripting awesome.
basically if my bash script needs to do any sort of Array processing it
suddenly turns into a gambas script, soooo much better  ;)

Can't wait to try this out :)
And thank you ,, I wanted it once, I'm sure I will again , as may others :)

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210227/a2dacdb2/attachment.htm>


More information about the User mailing list