automatic set the last compilation date
BlitzMax Forums/BlitzMax Programming/automatic set the last compilation date
| ||
Hi ! i've you i idea how i can store and display to the screen the last compilation program date ? yes i now that it's easy to use a const and manually update it. But sure it will be so cool if it could be automatically updated when i compile the program ! thanks ! |
| ||
Build scripts are useful in these scenarios... A scriptable BMK would also be useful, then you could do anything extra that you need - on top of the usual build process. |
| ||
ideas to do this ? could you post some links ? Last edited 2011 |
| ||
I've been wondering about this myself, any examples? |
| ||
Something like this is one way to do it... |
| ||
Hi ! To store the last compilation date : getdate.bmk @define GetDate version = os.date("%Y/%m/%d") file = io.open("version.txt","w") file:write(version) file:close() @End my source code... SuperStrict ' ' @bmk Include getdate.bmk ' @bmk GetDate ' Print "Version = " + LoadText("version.txt") not work here. (i've created the file version.txt). i compile the program directly from maxide (CTRL+R) ? Is it my error ? Thanks ! |
| ||
If you are using my BMK, it will work as expected :Building test Executing:test.debug.exe Version = 2011/08/24 Process complete The official bmk doesn't do much other than compile stuff. |
| ||
Scriptable BMK huh? BRL should add Lua scripting to it :-) |
| ||
Now there's an idea! ;-) |
| ||
Lol! Just seen this:http://blitzmax.com/Community/posts.php?topic=90110 You're using Lua with your modified BMK :-D. I did not know that, haha. |