Skip to content

amiga: put a version the Version command can read into the cookie - #23

Open
pulchart wants to merge 2 commits into
reinauer:mainfrom
pulchart:wip/jpu/version-strings
Open

pulchart wants to merge 2 commits into
reinauer:mainfrom
pulchart:wip/jpu/version-strings

Conversation

@pulchart

Copy link
Copy Markdown

Two things came out of one string. The cookie carried the git describe where Version looks for ., and rt_IdString pointed at the cookie itself, $VER: and all, which a ROMTag has no use for.

Before, on the v0.7.0 release build:

> version CD0:
ODFileSystem 0.-1

> version CD0: full
ODFileSystem 0.-1

> version L:ODFileSystem
ODFileSystem v0.7.0 (28.7.2026)

> version L:ODFileSystem full
ODFileSystem v0.7.0 (28.7.2026)

> version ODFileSystem
ODFileSystem 0.-1

> version ODFileSystem full
ODFileSystem 0.-1

ROMTag: "$VER: ODFileSystem v0.7.0 (28.7.2026)"

Suggested change: the numbers go into that position and the describe follows the date, so every reader parses it and none of them lose the describe:

> version L:ODFileSystem
ODFileSystem 0.7

> version L:ODFileSystem full
ODFileSystem 0.7 (17.9.2026)
v0.7.0-12-g2e6d42b

> version ODFileSystem
ODFileSystem 0.7

> version ODFileSystem full
ODFileSystem 0.7 (17.9.2026)
v0.7.0-12-g2e6d42b

> version CD0:
ODFileSystem 0.7

> version CD0: full
ODFileSystem 0.7 (17.9.2026)
v0.7.0-12-g2e6d42b

ROMTag:
ODFileSystem 0.7 (17.9.2026)
v0.7.0-12-g2e6d42b

rt_IdString and the FileSysResource entry name point past the prefix and share that one string, so the separate creator string is gone.

date '+%-d.%-m.%Y' produced 17.9.2026 where the cookie convention is
dd.mm.yyyy, and the call ran in whatever locale the builder had.
Two things came out of one string. The cookie carried the git describe
where Version looks for <version>.<revision>, and rt_IdString pointed at
the cookie itself, "$VER: " and all, which a ROMTag has no use for.

Before, on the v0.7.0 release build:

    > version CD0:
    ODFileSystem 0.-1

    > version CD0: full
    ODFileSystem 0.-1

    > version L:ODFileSystem
    ODFileSystem v0.7.0 (28.7.2026)

    > version L:ODFileSystem full
    ODFileSystem v0.7.0 (28.7.2026)

    > version ODFileSystem
    ODFileSystem 0.-1

    > version ODFileSystem full
    ODFileSystem 0.-1

    ROMTag: "$VER: ODFileSystem v0.7.0 (28.7.2026)"

Suggested change: the numbers go into that position and the describe
follows the date, so every reader parses it and none of them lose the
describe:

    > version L:ODFileSystem
    ODFileSystem 0.7

    > version L:ODFileSystem full
    ODFileSystem 0.7 (17.9.2026)
    v0.7.0-12-g2e6d42b

    > version ODFileSystem
    ODFileSystem 0.7

    > version ODFileSystem full
    ODFileSystem 0.7 (17.9.2026)
    v0.7.0-12-g2e6d42b

    > version CD0:
    ODFileSystem 0.7

    > version CD0: full
    ODFileSystem 0.7 (17.9.2026)
    v0.7.0-12-g2e6d42b

    ROMTag:
    ODFileSystem 0.7 (17.9.2026)
    v0.7.0-12-g2e6d42b

rt_IdString and the FileSysResource entry name point past the prefix and
share that one string, so the separate creator string is gone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant