Issue-#159 Annual copyright date change in About & License f

Post Reply
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Issue-#159 Annual copyright date change in About & License f

Post by Robert »

See issue: https://redmine.blackboxframework.org/issues/159

For this year the Systems/Rsrc/About file has already been updated.
I could easily update the Docu/BB-License file.

But maybe someone with technical knowledge of the build engine could implement a permanent solution?
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: Issue-#159 Annual copyright date change in About & Licen

Post by Josef Templ »

Also the top-level file LICENSE.txt needs to be updated.
For an ASCII text the replacement could be done by a command line editor such as ed.

For a BlackBox text file this is not possible.
A Caption control could be used but it requires
another entry in the Strings resource file, for example
"buildYear 2017"

- Josef
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: Issue-#159 Annual copyright date change in About & Licen

Post by Josef Templ »

I cannot find an easy way to automate this.
In principle, it is clear that it can be automated but the effort
and increase of build process complexity seem too high to be justified.
One approach would be to create something like an "Expand" command that takes a text file as input
and replaces resource keys by resource values.
e.g. in BB-License.odc
Copyright (c) 2013 - {#System:buildYear} BlackBox Framework Center
or a more specific command ExpandBuildYear that works for buildYear only:
Copyright (c) 2013 - ${buildYear} BlackBox Framework Center


Anyway, the files affected are:

System/Rsrc/About.odc
Docu/BB-License.odc
LICENSE.txt

where About.odc is already fixed. I have not found any other files so far.
For the time being I would go for a manual patch.

- Josef
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: Issue-#159 Annual copyright date change in About & Licen

Post by Josef Templ »

Two files needed to be patched:

Docu/BB-License.odc
LICENSE.txt

I have put them in topic branch issue-#159.

See diffs at https://redmine.blackboxframework.org/p ... 732452be3b.

- Josef
Post Reply