From 48619958d53cbec888a0a6806c5e494291e9e227 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 20 Aug 2012 16:52:21 +0000 Subject: 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 --- meta/classes/utils.bbclass | 52 +++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'meta/classes/utils.bbclass') 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() { } create_cmdline_wrapper () { - # Create a wrapper script - # - # These are useful to work around relocation issues, by setting environment - # variables which point to paths in the filesystem. - # - # Usage: create_wrapper FILENAME [[VAR=VALUE]..] + # Create a wrapper script + # + # These are useful to work around relocation issues, by setting environment + # variables which point to paths in the filesystem. + # + # Usage: create_wrapper FILENAME [[VAR=VALUE]..] - cmd=$1 - shift + cmd=$1 + shift - echo "Generating wrapper script for $cmd" + echo "Generating wrapper script for $cmd" - mv $cmd $cmd.real - cmdname=`basename $cmd`.real - cat <$cmd + mv $cmd $cmd.real + cmdname=`basename $cmd`.real + cat <$cmd #!/bin/sh realpath=\`readlink -fn \$0\` exec \`dirname \$realpath\`/$cmdname $@ "\$@" END - chmod +x $cmd + chmod +x $cmd } create_wrapper () { - # Create a wrapper script - # - # These are useful to work around relocation issues, by setting environment - # variables which point to paths in the filesystem. - # - # Usage: create_wrapper FILENAME [[VAR=VALUE]..] + # Create a wrapper script + # + # These are useful to work around relocation issues, by setting environment + # variables which point to paths in the filesystem. + # + # Usage: create_wrapper FILENAME [[VAR=VALUE]..] - cmd=$1 - shift + cmd=$1 + shift - echo "Generating wrapper script for $cmd" + echo "Generating wrapper script for $cmd" - mv $cmd $cmd.real - cmdname=`basename $cmd`.real - cat <$cmd + mv $cmd $cmd.real + cmdname=`basename $cmd`.real + cat <$cmd #!/bin/sh realpath=\`readlink -fn \$0\` exec env $@ \`dirname \$realpath\`/$cmdname "\$@" END - chmod +x $cmd + chmod +x $cmd } def check_app_exists(app, d): -- cgit v1.2.3-54-g00ecf