Page 1 of 1

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

Posted: Thu Apr 20, 2017 6:59 pm
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?

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

Posted: Fri Apr 28, 2017 8:36 am
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

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

Posted: Mon Jun 12, 2017 4:24 pm
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

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

Posted: Fri Aug 11, 2017 11:49 am
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