diff options
author | Ruslan Bilovol <ruslan.bilovol@gmail.com> | 2015-09-08 13:11:23 +0300 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2015-09-10 09:43:19 +0000 |
commit | 54527e7e3086758a23e3b069f183db6415aca304 (patch) | |
tree | e43bc2ec647d52a1b2ceb1e442ac1c0c6e04bcb1 | |
parent | 5d0c3a614edc3f3d5967cfc07c7981da7013ea91 (diff) | |
download | git-repo-54527e7e3086758a23e3b069f183db6415aca304.tar.gz |
docs: add copyfile and linkfile elements description
The "copyfile" element is available since 2009 and
have been used in every Android manifest; the "linkfile"
element is available since 2014.
Now it's a good time to add both to the documentation
Change-Id: Ia987edf5f69a006235fbd3f33b744e9794a6d964
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
-rw-r--r-- | docs/manifest-format.txt | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/docs/manifest-format.txt b/docs/manifest-format.txt index 1aa93965..7f138209 100644 --- a/docs/manifest-format.txt +++ b/docs/manifest-format.txt | |||
@@ -50,7 +50,9 @@ following DTD: | |||
50 | <!ATTLIST url CDATA #REQUIRED> | 50 | <!ATTLIST url CDATA #REQUIRED> |
51 | 51 | ||
52 | <!ELEMENT project (annotation*, | 52 | <!ELEMENT project (annotation*, |
53 | project*)> | 53 | project*, |
54 | copyfile?, | ||
55 | linkfile?)> | ||
54 | <!ATTLIST project name CDATA #REQUIRED> | 56 | <!ATTLIST project name CDATA #REQUIRED> |
55 | <!ATTLIST project path CDATA #IMPLIED> | 57 | <!ATTLIST project path CDATA #IMPLIED> |
56 | <!ATTLIST project remote IDREF #IMPLIED> | 58 | <!ATTLIST project remote IDREF #IMPLIED> |
@@ -68,6 +70,14 @@ following DTD: | |||
68 | <!ATTLIST annotation value CDATA #REQUIRED> | 70 | <!ATTLIST annotation value CDATA #REQUIRED> |
69 | <!ATTLIST annotation keep CDATA "true"> | 71 | <!ATTLIST annotation keep CDATA "true"> |
70 | 72 | ||
73 | <!ELEMENT copyfile (EMPTY)> | ||
74 | <!ATTLIST src value CDATA #REQUIRED> | ||
75 | <!ATTLIST dest value CDATA #REQUIRED> | ||
76 | |||
77 | <!ELEMENT linkfile (EMPTY)> | ||
78 | <!ATTLIST src value CDATA #REQUIRED> | ||
79 | <!ATTLIST dest value CDATA #REQUIRED> | ||
80 | |||
71 | <!ELEMENT extend-project> | 81 | <!ELEMENT extend-project> |
72 | <!ATTLIST extend-project name CDATA #REQUIRED> | 82 | <!ATTLIST extend-project name CDATA #REQUIRED> |
73 | <!ATTLIST extend-project path CDATA #IMPLIED> | 83 | <!ATTLIST extend-project path CDATA #IMPLIED> |
@@ -285,6 +295,21 @@ prefixed with REPO__. In addition, there is an optional attribute | |||
285 | "false". This attribute determines whether or not the annotation will | 295 | "false". This attribute determines whether or not the annotation will |
286 | be kept when exported with the manifest subcommand. | 296 | be kept when exported with the manifest subcommand. |
287 | 297 | ||
298 | Element copyfile | ||
299 | ---------------- | ||
300 | |||
301 | Zero or more copyfile elements may be specified as children of a | ||
302 | project element. Each element describes a src-dest pair of files; | ||
303 | the "src" file will be copied to the "dest" place during 'repo sync' | ||
304 | command. | ||
305 | "src" is project relative, "dest" is relative to the top of the tree. | ||
306 | |||
307 | Element linkfile | ||
308 | ---------------- | ||
309 | |||
310 | It's just like copyfile and runs at the same time as copyfile but | ||
311 | instead of copying it creates a symlink. | ||
312 | |||
288 | Element remove-project | 313 | Element remove-project |
289 | ---------------------- | 314 | ---------------------- |
290 | 315 | ||