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

Brian G brian at westwoodsvcs.com
Sat Feb 27 18:32:46 CET 2021


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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210227/ce134736/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ProjectToScript
Type: application/octet-stream
Size: 2176 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210227/ce134736/attachment-0001.obj>


More information about the User mailing list