Re: [hatari-devel] version info?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]




Hi
-v and --version should both work :

hatari -v

Hatari v1.8.0 - the Atari ST, STE, TT and Falcon emulator.

Hatari is free software licensed under the GNU General Public License.

so I think the window build lacks something to output to console.

Yeah, I suspected this might be the case. Looked suspicious.
 

As for printing the HG source revision, this might be complicated, because mercurial is de-centralized, so several people could have their own repository where they commit code, and have their own changeset number. The real key for a revision/commit is the hex hashkey after the revision

changeset:   5748:6d161e98538f

Yes, I'm aware of this.

At work we always use the revision hash, and generate a header file from the current revision which expresses that revision to the built code, so it may be reported by the program (The generated header should never be pushed). It does however create a dependency on mercurial itself, to generate the header. Either that, or make do with a header under source control which is always rev-1 :-D

I had been using the date previously to identify Hatari but ended up with a version which didn't seem to match the date reported on the window header - possibly because the build time was being recorded, rather than the version. So I was unable to build the version I had been using from source myself, unable to track it down (CPU timing behaviour always seemed to be different in the version I built).

Anyway, any solution which works will do. Sounds like getting the Windows version to output usage/date info to the console is a good first step.

D



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/