[Gambas-user] Run command after making exe (options)

Bruce Steers bsteers4 at gmail.com
Sun Feb 14 22:02:20 CET 2021


Hi.
I'm trying to use the "Run command after" option when making an exe to
auto-alter some version texts in various files
i made a gbs script file that i can place in the source folder and it does
the version change okay but i can't launch it.

tooltip says use $(FILE) for exe name

What i need is $(PATH) for source folder (i tried that and it didn't work)

are there any other options i can use with this feature except $(FILE)

I've attatched the script so you can see what i'm trying to accomplish

-- script info  --
It's run in the project folder
it gets the version from the .project file
it searches given document names for version pattern and replaces version
number.

easier to show the comments from the script start..
' Replace "*" in Findstring with version number.

' syntax SetVers <FindString> <Files ,...>
' if filname has @ prefix then no pattern matching, just write version
string only to file
' (usefull for a VERSION file, will erase any other text)
' examples

' SetVers 'Version "*"' README.md
' will replace text between doublequotes with version string in README.md

' SetVers 'Version "*"' README.md @VERSION
' will replace text between doublequotes with version string in README.md


Script is far from perfect but if i can't get the project folder i'm going
to have to think another route anyway like putting the script somewhere
with an absolute path and calling it with the $(FILE) and working from
there.

Many thanks.
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210214/d8578e82/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SetVers.zip
Type: application/zip
Size: 1012 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210214/d8578e82/attachment.zip>


More information about the User mailing list