1 |
commit: 3d3e03c8f83de3b9fde8589c995d0f70c641556b |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 2 08:38:08 2016 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 2 08:38:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=3d3e03c8 |
7 |
|
8 |
Update years in example ebuild and eclass headers. |
9 |
|
10 |
Also escape any VCS keywords that could potentially be expanded. |
11 |
|
12 |
ebuild-writing/common-mistakes/text.xml | 2 +- |
13 |
ebuild-writing/eapi/text.xml | 12 ++++++------ |
14 |
ebuild-writing/file-format/text.xml | 9 +++++---- |
15 |
ebuild-writing/functions/src_prepare/epatch/text.xml | 4 ++-- |
16 |
.../functions/src_unpack/rpm-sources/text.xml | 4 ++-- |
17 |
ebuild-writing/misc-files/patches/text.xml | 4 ++-- |
18 |
ebuild-writing/using-eclasses/text.xml | 4 ++-- |
19 |
eclass-writing/text.xml | 12 ++++++------ |
20 |
quickstart/text.xml | 20 ++++++++++---------- |
21 |
9 files changed, 36 insertions(+), 35 deletions(-) |
22 |
|
23 |
diff --git a/ebuild-writing/common-mistakes/text.xml b/ebuild-writing/common-mistakes/text.xml |
24 |
index 1716e5d..8293bc8 100644 |
25 |
--- a/ebuild-writing/common-mistakes/text.xml |
26 |
+++ b/ebuild-writing/common-mistakes/text.xml |
27 |
@@ -158,7 +158,7 @@ The first three lines <e>must</e> look like this: |
28 |
</p> |
29 |
|
30 |
<pre caption="Valid Header"> |
31 |
-# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
# Distributed under the terms of the GNU General Public License v2 |
34 |
# $Id$ |
35 |
</pre> |
36 |
|
37 |
diff --git a/ebuild-writing/eapi/text.xml b/ebuild-writing/eapi/text.xml |
38 |
index 239f6f3..8045b28 100644 |
39 |
--- a/ebuild-writing/eapi/text.xml |
40 |
+++ b/ebuild-writing/eapi/text.xml |
41 |
@@ -42,9 +42,9 @@ Most developers prefer to set the EAPI version without quotes. However, the PMS |
42 |
</note> |
43 |
|
44 |
<codesample lang="ebuild"> |
45 |
-# Copyright 1999-2015 Gentoo Foundation |
46 |
+# Copyright 1999-2016 Gentoo Foundation |
47 |
# Distributed under the terms of the GNU General Public License v2 |
48 |
-# $Id$ |
49 |
+# $Id$ |
50 |
|
51 |
EAPI=5 |
52 |
inherit eutils |
53 |
@@ -120,9 +120,9 @@ src_compile() { |
54 |
</important> |
55 |
|
56 |
<codesample lang="ebuild"> |
57 |
-# Copyright 1999-2015 Gentoo Foundation |
58 |
+# Copyright 1999-2016 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
-# $Id$ |
61 |
+# $Id$ |
62 |
|
63 |
EAPI=1 |
64 |
|
65 |
@@ -515,9 +515,9 @@ DEPEND=" |
66 |
</p> |
67 |
<p>Example:</p> |
68 |
<codesample lang="ebuild"> |
69 |
-# Copyright 1999-2015 Gentoo Foundation |
70 |
+# Copyright 1999-2016 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
-# $Id$ |
73 |
+# $Id$ |
74 |
|
75 |
EAPI=4 |
76 |
inherit linux-info |
77 |
|
78 |
diff --git a/ebuild-writing/file-format/text.xml b/ebuild-writing/file-format/text.xml |
79 |
index 74a623e..e74fd15 100644 |
80 |
--- a/ebuild-writing/file-format/text.xml |
81 |
+++ b/ebuild-writing/file-format/text.xml |
82 |
@@ -138,14 +138,15 @@ is to use <c>9999</c> as the version (or as the last version component). |
83 |
<p> |
84 |
All ebuilds committed to the tree should have a three line header immediately at |
85 |
the start indicating copyright. This must be an exact copy of the contents of |
86 |
-<c>$(portageq get_repo_path / gentoo)/header.txt</c>. Ensure that the <c>$Id$</c> line is not |
87 |
-modified manually <d/> will be expanded on staging box. See <uri link="::general-concepts/git-to-rsync"/>. |
88 |
+<c>$(portageq get_repo_path / gentoo)/header.txt</c>. Ensure that the |
89 |
+<c>$Id$</c> line is not modified manually <d/> will be expanded |
90 |
+on staging box. See <uri link="::general-concepts/git-to-rsync"/>. |
91 |
</p> |
92 |
|
93 |
<codesample lang="ebuild"> |
94 |
-# Copyright 1999-2015 Gentoo Foundation |
95 |
+# Copyright 1999-2016 Gentoo Foundation |
96 |
# Distributed under the terms of the GNU General Public License v2 |
97 |
-# $Id$ |
98 |
+# $Id$ |
99 |
</codesample> |
100 |
|
101 |
</body> |
102 |
|
103 |
diff --git a/ebuild-writing/functions/src_prepare/epatch/text.xml b/ebuild-writing/functions/src_prepare/epatch/text.xml |
104 |
index 2401bdc..a8d5f04 100644 |
105 |
--- a/ebuild-writing/functions/src_prepare/epatch/text.xml |
106 |
+++ b/ebuild-writing/functions/src_prepare/epatch/text.xml |
107 |
@@ -69,8 +69,8 @@ Remember to add the patch to <c>SRC_URI</c>. |
108 |
<title>Git Keyword Expansion Lines and Patches</title> |
109 |
<body> |
110 |
<p> |
111 |
-If your patch includes any changes to Git <c>$Id$</c> |
112 |
-(or <c>$Date$</c>) lines, it cannot be |
113 |
+If your patch includes any changes to Git <c>$Id$</c> |
114 |
+(or <c>$Date$</c>) lines, it cannot be |
115 |
distributed under <c>files/</c>, since Git will clobber the patch when |
116 |
keywords are expanded on the staging box. In these situations, either remove this hunk of the patch |
117 |
manually, or mirror the file. See <uri link="::general-concepts/git-to-rsync"/>. |
118 |
|
119 |
diff --git a/ebuild-writing/functions/src_unpack/rpm-sources/text.xml b/ebuild-writing/functions/src_unpack/rpm-sources/text.xml |
120 |
index 0ff0def..0046e20 100644 |
121 |
--- a/ebuild-writing/functions/src_unpack/rpm-sources/text.xml |
122 |
+++ b/ebuild-writing/functions/src_unpack/rpm-sources/text.xml |
123 |
@@ -52,9 +52,9 @@ patches. The filename should be <c>suse-fetchmail-6.2.5.54.1.ebuild</c>. |
124 |
</p> |
125 |
|
126 |
<codesample lang="ebuild"> |
127 |
-# Copyright 1999-2015 Gentoo Foundation |
128 |
+# Copyright 1999-2016 Gentoo Foundation |
129 |
# Distributed under the terms of the GNU General Public License v2 |
130 |
-# $Id$ |
131 |
+# $Id$ |
132 |
|
133 |
inherit eutils versionator rpm |
134 |
|
135 |
|
136 |
diff --git a/ebuild-writing/misc-files/patches/text.xml b/ebuild-writing/misc-files/patches/text.xml |
137 |
index cd85244..4bb8375 100644 |
138 |
--- a/ebuild-writing/misc-files/patches/text.xml |
139 |
+++ b/ebuild-writing/misc-files/patches/text.xml |
140 |
@@ -107,8 +107,8 @@ from the <c>vim</c> patch tarball: |
141 |
|
142 |
<p> |
143 |
When adding a patch to the tree be sure to check that the patch doesn't have |
144 |
-Git keywords in it that will be expanded (such as <c>$Id$</c>). If the patch |
145 |
-contains these, it will break manifests unless you add it to the tree |
146 |
+Git keywords in it that will be expanded (such as <c>$Id$</c>). If |
147 |
+the patch contains these, it will break manifests unless you add it to the tree |
148 |
correctly. In the case that it does have the keywords, you should remove them. |
149 |
Afterwards they can be added like every other file: |
150 |
</p> |
151 |
|
152 |
diff --git a/ebuild-writing/using-eclasses/text.xml b/ebuild-writing/using-eclasses/text.xml |
153 |
index d10f4fc..495d03c 100644 |
154 |
--- a/ebuild-writing/using-eclasses/text.xml |
155 |
+++ b/ebuild-writing/using-eclasses/text.xml |
156 |
@@ -30,9 +30,9 @@ After inheriting an eclass, its provided functions can be used as normal. Here's |
157 |
</p> |
158 |
|
159 |
<codesample lang="ebuild"> |
160 |
-# Copyright 1999-2015 Gentoo Foundation |
161 |
+# Copyright 1999-2016 Gentoo Foundation |
162 |
# Distributed under the terms of the GNU General Public License v2 |
163 |
-# $Id$ |
164 |
+# $Id$ |
165 |
|
166 |
EAPI=2 |
167 |
|
168 |
|
169 |
diff --git a/eclass-writing/text.xml b/eclass-writing/text.xml |
170 |
index 63aaf9c..1a115b1 100644 |
171 |
--- a/eclass-writing/text.xml |
172 |
+++ b/eclass-writing/text.xml |
173 |
@@ -176,9 +176,9 @@ a single function, <c>domacosapp</c>. |
174 |
</p> |
175 |
|
176 |
<codesample lang="ebuild"> |
177 |
-# Copyright 1999-2015 Gentoo Foundation |
178 |
+# Copyright 1999-2016 Gentoo Foundation |
179 |
# Distributed under the terms of the GNU General Public License v2 |
180 |
-# $Id$ |
181 |
+# $Id$ |
182 |
|
183 |
# |
184 |
# Original Author: Ciaran McCreesh <ciaranm@g.o> |
185 |
@@ -263,9 +263,9 @@ something like the following: |
186 |
</p> |
187 |
|
188 |
<codesample lang="ebuild"> |
189 |
-# Copyright 1999-2015 Gentoo Foundation |
190 |
+# Copyright 1999-2016 Gentoo Foundation |
191 |
# Distributed under the terms of the GNU General Public License v2 |
192 |
-# $Id$ |
193 |
+# $Id$ |
194 |
|
195 |
# Original Author: Ciaran McCreesh <ciaranm@g.o> |
196 |
# Purpose: Demonstration of EXPORT_FUNCTIONS. Defines simple wrappers for the |
197 |
@@ -306,9 +306,9 @@ for an eclass to invoke die from the global scope. For example: |
198 |
</p> |
199 |
|
200 |
<codesample lang="ebuild"> |
201 |
-# Copyright 1999-2015 Gentoo Foundation |
202 |
+# Copyright 1999-2016 Gentoo Foundation |
203 |
# Distributed under the terms of the GNU General Public License v2 |
204 |
-# $Id$ |
205 |
+# $Id$ |
206 |
|
207 |
# Purpose: Demonstration of die upon invalid EAPI usage. |
208 |
|
209 |
|
210 |
diff --git a/quickstart/text.xml b/quickstart/text.xml |
211 |
index 561e4cd..e919716 100644 |
212 |
--- a/quickstart/text.xml |
213 |
+++ b/quickstart/text.xml |
214 |
@@ -34,9 +34,9 @@ can see real ebuilds in the main tree). |
215 |
</p> |
216 |
|
217 |
<codesample lang="ebuild"> |
218 |
-# Copyright 1999-2015 Gentoo Foundation |
219 |
+# Copyright 1999-2016 Gentoo Foundation |
220 |
# Distributed under the terms of the GNU General Public License v2 |
221 |
-# $Id$ |
222 |
+# $Id$ |
223 |
|
224 |
EAPI=5 |
225 |
|
226 |
@@ -206,9 +206,9 @@ Here's <c>app-misc/detox/detox-1.1.1.ebuild</c>: |
227 |
</p> |
228 |
|
229 |
<codesample lang="ebuild"> |
230 |
-# Copyright 1999-2015 Gentoo Foundation |
231 |
+# Copyright 1999-2016 Gentoo Foundation |
232 |
# Distributed under the terms of the GNU General Public License v2 |
233 |
-# $Id$ |
234 |
+# $Id$ |
235 |
|
236 |
EAPI=5 |
237 |
|
238 |
@@ -271,9 +271,9 @@ this is done via <c>inherit eutils</c> at the top of the ebuild. Here's |
239 |
</p> |
240 |
|
241 |
<codesample lang="ebuild"> |
242 |
-# Copyright 1999-2015 Gentoo Foundation |
243 |
+# Copyright 1999-2016 Gentoo Foundation |
244 |
# Distributed under the terms of the GNU General Public License v2 |
245 |
-# $Id$ |
246 |
+# $Id$ |
247 |
|
248 |
EAPI=5 |
249 |
|
250 |
@@ -329,9 +329,9 @@ replacement iconv for <c>libc</c> implementations which don't have their own. |
251 |
</p> |
252 |
|
253 |
<codesample lang="ebuild"> |
254 |
-# Copyright 1999-2015 Gentoo Foundation |
255 |
+# Copyright 1999-2016 Gentoo Foundation |
256 |
# Distributed under the terms of the GNU General Public License v2 |
257 |
-# $Id$ |
258 |
+# $Id$ |
259 |
|
260 |
EAPI=5 |
261 |
|
262 |
@@ -373,9 +373,9 @@ Another more complicated example, this time based upon |
263 |
</p> |
264 |
|
265 |
<codesample lang="ebuild"> |
266 |
-# Copyright 1999-2015 Gentoo Foundation |
267 |
+# Copyright 1999-2016 Gentoo Foundation |
268 |
# Distributed under the terms of the GNU General Public License v2 |
269 |
-# $Id$ |
270 |
+# $Id$ |
271 |
|
272 |
EAPI=5 |