summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml19
1 files changed, 12 insertions, 7 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 3e9cccef15..0b9bb6bec5 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -1221,16 +1221,21 @@
1221 </itemizedlist> 1221 </itemizedlist>
1222 </para> 1222 </para>
1223 1223
1224 <note> 1224 <para>
1225 <para>When writing shell functions, you need to be aware of BitBake's 1225 Regardless of where you get a base recipe, you will need to
1226 curly brace parsing. 1226 make changes to support your needs.
1227 When you do, you need to be aware of how BitBake parses curly
1228 braces.
1227 If a recipe uses a closing curly brace within the function and 1229 If a recipe uses a closing curly brace within the function and
1228 the character has no leading spaces, BitBake produces a parsing 1230 the character has no leading spaces, BitBake produces a parsing
1229 error. 1231 error.
1230 If you use a pair of curly brace in a shell function, the 1232 If you use a pair of curly brace in a shell function, the
1231 closing curly brace must not be located at the start of the line 1233 closing curly brace must not be located at the start of the line
1232 without leading spaces.</para> 1234 without leading spaces.
1233 <para>Here is an example that causes BitBake to produce a parsing 1235 </para>
1236
1237 <para>
1238 Here is an example that causes BitBake to produce a parsing
1234 error: 1239 error:
1235 <literallayout class='monospaced'> 1240 <literallayout class='monospaced'>
1236 fakeroot create_shar() { 1241 fakeroot create_shar() {
@@ -1254,8 +1259,8 @@
1254 } 1259 }
1255 EOF 1260 EOF
1256 } 1261 }
1257 </literallayout></para> 1262 </literallayout>
1258 </note> 1263 </para>
1259 </section> 1264 </section>
1260 1265
1261 <section id='new-recipe-naming-the-recipe'> 1266 <section id='new-recipe-naming-the-recipe'>