mirror of
https://github.com/ganelson/inform.git
synced 2024-04-29 15:49:36 +03:00
Change to kit version syncing mechanism
This commit is contained in:
parent
7c54b99361
commit
5b4a89d544
|
@ -1,6 +1,6 @@
|
||||||
# Inform 7
|
# Inform 7
|
||||||
|
|
||||||
[Version](notes/versioning.md): 10.1.0-beta+6V43 'Krypton' (18 August 2022)
|
[Version](notes/versioning.md): 10.1.0-beta+6V44 'Krypton' (20 August 2022)
|
||||||
|
|
||||||
## About Inform
|
## About Inform
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Prerelease: beta
|
Prerelease: beta
|
||||||
Build Date: 18 August 2022
|
Build Date: 20 August 2022
|
||||||
Build Number: 6V43
|
Build Number: 6V44
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"is": {
|
"is": {
|
||||||
"type": "kit",
|
"type": "kit",
|
||||||
"title": "BasicInformExtrasKit",
|
"title": "BasicInformExtrasKit",
|
||||||
"version": "10.1.0-beta+6V20"
|
"version": "10.1.0-beta+6V44"
|
||||||
},
|
},
|
||||||
"kit-details": {
|
"kit-details": {
|
||||||
"has-priority": 1
|
"has-priority": 1
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"is": {
|
"is": {
|
||||||
"type": "kit",
|
"type": "kit",
|
||||||
"title": "BasicInformKit",
|
"title": "BasicInformKit",
|
||||||
"version": "10.1.0-beta+6V20"
|
"version": "10.1.0-beta+6V44"
|
||||||
},
|
},
|
||||||
"needs": [ {
|
"needs": [ {
|
||||||
"unless": {
|
"unless": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"is": {
|
"is": {
|
||||||
"type": "kit",
|
"type": "kit",
|
||||||
"title": "CommandParserKit",
|
"title": "CommandParserKit",
|
||||||
"version": "10.1.0-beta+6V20"
|
"version": "10.1.0-beta+6V44"
|
||||||
},
|
},
|
||||||
"needs": [ {
|
"needs": [ {
|
||||||
"need": {
|
"need": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"is": {
|
"is": {
|
||||||
"type": "kit",
|
"type": "kit",
|
||||||
"title": "EnglishLanguageKit",
|
"title": "EnglishLanguageKit",
|
||||||
"version": "10.1.0-beta+6V20"
|
"version": "10.1.0-beta+6V44"
|
||||||
},
|
},
|
||||||
"needs": [ {
|
"needs": [ {
|
||||||
"need": {
|
"need": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"is": {
|
"is": {
|
||||||
"type": "kit",
|
"type": "kit",
|
||||||
"title": "WorldModelKit",
|
"title": "WorldModelKit",
|
||||||
"version": "10.1.0-beta+6V20"
|
"version": "10.1.0-beta+6V44"
|
||||||
},
|
},
|
||||||
"needs": [ {
|
"needs": [ {
|
||||||
"need": {
|
"need": {
|
||||||
|
|
|
@ -20,6 +20,7 @@ void KitVersioning::sync_versions(void) {
|
||||||
web_md *inform7_web =
|
web_md *inform7_web =
|
||||||
WebMetadata::get_without_modules(Pathnames::from_text(I"inform7"), NULL);
|
WebMetadata::get_without_modules(Pathnames::from_text(I"inform7"), NULL);
|
||||||
semantic_version_number core_V = inform7_web->version_number;
|
semantic_version_number core_V = inform7_web->version_number;
|
||||||
|
PRINT("inform7 web has version %v\n", &core_V);
|
||||||
KitVersioning::iterate(core_V);
|
KitVersioning::iterate(core_V);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,12 +78,27 @@ semantic_version_number KitVersioning::read_version(pathname *kit, semantic_vers
|
||||||
return VersionNumbers::null();
|
return VersionNumbers::null();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (VersionNumbers::is_null(set_to) == FALSE)
|
if (VersionNumbers::is_null(set_to) == FALSE)
|
||||||
if (VersionNumbers::ne(set_to, V))
|
@<Decide whether to impose the new version@>;
|
||||||
@<Change the version to set_to@>;
|
|
||||||
return V;
|
return V;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ The following test used to be just |VersionNumbers::ne(set_to, V)|, but this,
|
||||||
|
because it properly followed the semver standard, regarded them as equal if they
|
||||||
|
differed only in the build code -- so |10.1.0-beta+6V20| would not be updated to
|
||||||
|
|10.1.0-beta+6V44|, for example. We now force a sync if there is any textual
|
||||||
|
difference at all.
|
||||||
|
|
||||||
|
@<Decide whether to impose the new version@> =
|
||||||
|
TEMPORARY_TEXT(a)
|
||||||
|
TEMPORARY_TEXT(b)
|
||||||
|
WRITE_TO(a, "%v", &set_to);
|
||||||
|
WRITE_TO(b, "%v", &V);
|
||||||
|
if (Str::ne(a, b))
|
||||||
|
@<Change the version to set_to@>;
|
||||||
|
DISCARD_TEXT(a)
|
||||||
|
DISCARD_TEXT(b)
|
||||||
|
|
||||||
@ We change the JSON object for the kit's metadata (at object.is.version), and
|
@ We change the JSON object for the kit's metadata (at object.is.version), and
|
||||||
then encode the object out as a new version of the file:
|
then encode the object out as a new version of the file:
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# Release notes for Inform v10.1.0
|
# Release notes for Inform v10.1.0
|
||||||
|
|
||||||
**These are incomplete and draft notes for a release not yet made**
|
|
||||||
|
|
||||||
This release was made in August 2022. Bug reports were at this time tracked
|
This release was made in August 2022. Bug reports were at this time tracked
|
||||||
at Jira, with issue numbers written I7-NNNN, but Mantis issue numbers
|
at Jira, with issue numbers written I7-NNNN, but Mantis issue numbers
|
||||||
continued to be used for bugs fixed before the move to Jira, so that this
|
continued to be used for bugs fixed before the move to Jira, so that this
|
||||||
|
@ -44,6 +42,11 @@ features and bug fixes in the apps for Windows, MacOS and Linux. But those have
|
||||||
their own repositories, and their own release notes, so from now on these
|
their own repositories, and their own release notes, so from now on these
|
||||||
core Inform release notes will only mention major app changes.
|
core Inform release notes will only mention major app changes.
|
||||||
|
|
||||||
|
## Inweb version
|
||||||
|
|
||||||
|
Inform's one build dependency is the [Inweb literate programming system](https://github.com/ganelson/inweb).
|
||||||
|
At the time of this release, the current Inweb version was 7.2.0.
|
||||||
|
|
||||||
## Language changes
|
## Language changes
|
||||||
|
|
||||||
As noted, there are surprisingly few changes to the outward-facing language
|
As noted, there are surprisingly few changes to the outward-facing language
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
See [versions](versions.md) for details of Inform's version numbering.
|
See [versions](versions.md) for details of Inform's version numbering.
|
||||||
|
|
||||||
The next version to be released will be 10.1.0, and its [draft release note is here](release/10-1-0.md).
|
Links in the following table are to the archive of release notes. This
|
||||||
Links in the following table are to the archive of release notes past.
|
is in chronological order, with the current release at the bottom.
|
||||||
|
|
||||||
Codename | Version | Build | Date | Highlights
|
Codename | Version | Build | Date | Highlights
|
||||||
---------- | --------------------------- | ----- | -------------- | ----------
|
---------- | --------------------------- | ----- | -------------- | ----------
|
||||||
|
|
Loading…
Reference in a new issue