kieranhj / pop-beeb

Prince of Persia port to BBC Master
45 stars 2 forks source link

Automatic build versioning on ssd image? #42

Closed kieranhj closed 6 years ago

kieranhj commented 6 years ago

Would be nice to have an automatic versioning system so that for any given ssd I know which build version is on there. This would help keep track of any bug reports and addresses provided for exceptions etc.

ZornsLemma commented 6 years ago

Definitely not a perfect solution, but could you use the TIME$ support in the proposed-updates version of beebasm? Do "equs TIME$" somewhere in one of your source files, then you can see the timestamp in the binary with *DUMP. It's not a git commit ID or anything, but if you're the only active developer, there'd be a reasonable correlation between commit timestamps and build timestamps.

ZornsLemma commented 6 years ago

I guess the proper solution would be to have your makefile do something like: "git rev-parse HEAD > revision.txt", and add 'PUTFILE "revision.txt", "REVIS"' to the source.

kieranhj commented 6 years ago

I worked out how to mangle %DATE% and %TIME% into a build string in my batch makefile. Will load this into the game at some point.

kieranhj commented 6 years ago

First 8 bytes of the Core executable are now: $Vv $YY $MM $DD $HH $MM and first two letters of %USERNAME%. Need to add a quite option to display this on CTRL-V.

kieranhj commented 6 years ago

In branch.

kieranhj commented 6 years ago

Done. Press CTRL-V.