diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2019-03-04 16:54:06 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-03-19 15:16:51 +0100 |
commit | 7a9f6df7fb83ec23d09cb5744c2c865fa22e7143 (patch) | |
tree | 62af385480790172d4d55ccc05d88432c41aa6db /readlicense_oo/Package_license.mk | |
parent | 37399c71004d338bab9bfaba9023f6d7b463a286 (diff) |
single source file for licensing info with conditional text
... for easier maintenance. This commit only introduces the
framework. Follow up commits will update the license file.
Advantages:
* single source, multiple outputs (html, txt)
* conditional text, i.e. output will not include license
terms of components that are not configured in the build
Change-Id: I0ffad41119228a0a26fd1b6ce19930ca6085adb2
Reviewed-on: https://gerrit.libreoffice.org/69396
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'readlicense_oo/Package_license.mk')
-rw-r--r-- | readlicense_oo/Package_license.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/readlicense_oo/Package_license.mk b/readlicense_oo/Package_license.mk index 7dd1d8c148c3..473b3e44fbf4 100644 --- a/readlicense_oo/Package_license.mk +++ b/readlicense_oo/Package_license.mk @@ -9,6 +9,18 @@ $(eval $(call gb_Package_Package,readlicense_oo_license,$(call gb_CustomTarget_get_workdir,readlicense_oo/license))) -$(eval $(call gb_Package_add_file,readlicense_oo_license,license.txt,license.txt)) +ifneq ($(OS),WNT) +ifneq ($(OS),MACOSX) +$(eval $(call gb_Package_add_file,readlicense_oo_license,LICENSE,LICENSE)) +else +$(eval $(call gb_Package_add_file,readlicense_oo_license,Resources/LICENSE,LICENSE)) +endif +endif + +ifneq ($(OS),MACOSX) +$(eval $(call gb_Package_add_file,readlicense_oo_license,LICENSE.html,license.html)) +else +$(eval $(call gb_Package_add_file,readlicense_oo_license,Resources/LICENSE.html,license.html)) +endif # vim: set noet sw=4 ts=4: |