[build2] Installation of legal documentation (LICENSE, etc)

Boris Kolpackov boris at codesynthesis.com
Thu Jul 16 16:03:41 UTC 2020


Matthew Krupcale <mkrupcale at matthewkrupcale.com> writes:

> Doesn't the <project> get substituted in config.install.* at
> libbuild2/install/init.cxx:proc_var during the install module init?

Yes, but the expanded value is only used to initialize the corresponding
install.* variable. The expansion is not written back to config.install.*.

The nice thing about this setup is that now we can have a single set
of config.install.* values (with <project>) in the amalgamation's
config.build. Before we had to override those that contain the project
name in each subproject's config.build.


> I see. This also looks a bit weird since you don't have to escape the
> '>' here, so it's asymmetric.

The likelihood that someone would want a path with `<` in it was
deemed so low that we went with the simplest escaping scheme to
implement, which happens to be this.



More information about the users mailing list