From: Tobias Ulmer Date: Mon, 27 Feb 2017 20:00:47 +0000 (+0100) Subject: licencesrc: document the licence source X-Git-Tag: e2factory-2.3.17~17 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=3c7ffcd33a344184efd7a586dd080dc1fad0a5be;p=e2factory.git licencesrc: document the licence source Signed-off-by: Tobias Ulmer --- diff --git a/doc/man/e2source.5.in b/doc/man/e2source.5.in index 6c57830..21f7a58 100644 --- a/doc/man/e2source.5.in +++ b/doc/man/e2source.5.in @@ -1,8 +1,8 @@ .\" Man page for e2source .\" -.\" (c)2007-2016 emlix GmbH +.\" (c)2007-2017 emlix GmbH .\" -.TH e2source 5 "Dec 22, 2016" "@VERSION@" +.TH e2source 5 "Feb 27, 2017" "@VERSION@" .SH NAME src/*/config \- source configuration files of an e2factory project @@ -15,7 +15,8 @@ In case of sub-directories, all directories below \fBsrc/\fR do form the source- e.g.: \fBsrc///config\fR leads to source name: \fB.\fR. .br -Sources could either refer to files (including archives), git repositories or subversion repositories. +Sources could either refer to files (including archives), git repositories, +subversion repositories, or special sources. .SH STRUCTURE (file) The files have following structure, if referring to files: @@ -304,5 +305,53 @@ Type: String .br Path to the directory to be used in working copy mode. +.SH STRUCTURE (licence) + +The special source of type "licence" provides licence files for selected sources +and results. In the build environment, the source creates a number of directories +and text files containing new-line separated entries. All requested licence texts +are copied into the build environment. The text files can be used to find +structure between results, sources, and licences. + + +.nf +e2source { + type = "licence", + results = { "res1", ... } + sources = { "src1", ... } +} +.fi + +Schematic example of a file tree produced by the above configuration: + +.nf +/res/ +/res/res1/sources +/src/ +/src/src1/licences +/licences/ +/licences/lic1/licence.txt +... +.fi + +.SH KEYS (licence) + +.TP +.BR results +.br +Type: table of strings +.br +Optional table filled with one or more result names. The results and +dependencies will be scanned for sources. Licences for all found sources are +provided to the build environment. + +.TP +.BR sources +.br +Type: table of strings +.br +Optional table filled with one or more source names. The source names and their +licences will be provided to the build environment. + .SH "SEE ALSO" .BR e2factory(1)