diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-20 16:52:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-21 12:15:30 +0100 |
commit | 48619958d53cbec888a0a6806c5e494291e9e227 (patch) | |
tree | 0618ff69a32566be156b0f7e5d7a06cce350e033 /meta/classes/utils.bbclass | |
parent | 7c40daab587306da25c8d8f566392ee1f57bbef4 (diff) | |
download | poky-48619958d53cbec888a0a6806c5e494291e9e227.tar.gz |
meta/classes: Various python whitespace fixes
It was pointed out we have a number of weird indentations in the python functions.
This patch cleans up 3, 7 and other weird indentations for the core bbclass files.
It also fixes some wierd (odd) shell function indentation which my searches picked up.
(From OE-Core rev: 8385d6d74624000d68814f4e3266d47bc8885942)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 57406109de..c47ad6976d 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -246,49 +246,49 @@ oe_machinstall() { | |||
246 | } | 246 | } |
247 | 247 | ||
248 | create_cmdline_wrapper () { | 248 | create_cmdline_wrapper () { |
249 | # Create a wrapper script | 249 | # Create a wrapper script |
250 | # | 250 | # |
251 | # These are useful to work around relocation issues, by setting environment | 251 | # These are useful to work around relocation issues, by setting environment |
252 | # variables which point to paths in the filesystem. | 252 | # variables which point to paths in the filesystem. |
253 | # | 253 | # |
254 | # Usage: create_wrapper FILENAME [[VAR=VALUE]..] | 254 | # Usage: create_wrapper FILENAME [[VAR=VALUE]..] |
255 | 255 | ||
256 | cmd=$1 | 256 | cmd=$1 |
257 | shift | 257 | shift |
258 | 258 | ||
259 | echo "Generating wrapper script for $cmd" | 259 | echo "Generating wrapper script for $cmd" |
260 | 260 | ||
261 | mv $cmd $cmd.real | 261 | mv $cmd $cmd.real |
262 | cmdname=`basename $cmd`.real | 262 | cmdname=`basename $cmd`.real |
263 | cat <<END >$cmd | 263 | cat <<END >$cmd |
264 | #!/bin/sh | 264 | #!/bin/sh |
265 | realpath=\`readlink -fn \$0\` | 265 | realpath=\`readlink -fn \$0\` |
266 | exec \`dirname \$realpath\`/$cmdname $@ "\$@" | 266 | exec \`dirname \$realpath\`/$cmdname $@ "\$@" |
267 | END | 267 | END |
268 | chmod +x $cmd | 268 | chmod +x $cmd |
269 | } | 269 | } |
270 | 270 | ||
271 | create_wrapper () { | 271 | create_wrapper () { |
272 | # Create a wrapper script | 272 | # Create a wrapper script |
273 | # | 273 | # |
274 | # These are useful to work around relocation issues, by setting environment | 274 | # These are useful to work around relocation issues, by setting environment |
275 | # variables which point to paths in the filesystem. | 275 | # variables which point to paths in the filesystem. |
276 | # | 276 | # |
277 | # Usage: create_wrapper FILENAME [[VAR=VALUE]..] | 277 | # Usage: create_wrapper FILENAME [[VAR=VALUE]..] |
278 | 278 | ||
279 | cmd=$1 | 279 | cmd=$1 |
280 | shift | 280 | shift |
281 | 281 | ||
282 | echo "Generating wrapper script for $cmd" | 282 | echo "Generating wrapper script for $cmd" |
283 | 283 | ||
284 | mv $cmd $cmd.real | 284 | mv $cmd $cmd.real |
285 | cmdname=`basename $cmd`.real | 285 | cmdname=`basename $cmd`.real |
286 | cat <<END >$cmd | 286 | cat <<END >$cmd |
287 | #!/bin/sh | 287 | #!/bin/sh |
288 | realpath=\`readlink -fn \$0\` | 288 | realpath=\`readlink -fn \$0\` |
289 | exec env $@ \`dirname \$realpath\`/$cmdname "\$@" | 289 | exec env $@ \`dirname \$realpath\`/$cmdname "\$@" |
290 | END | 290 | END |
291 | chmod +x $cmd | 291 | chmod +x $cmd |
292 | } | 292 | } |
293 | 293 | ||
294 | def check_app_exists(app, d): | 294 | def check_app_exists(app, d): |