diff options
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index cf8893f5b4..e873c539c5 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -282,12 +282,12 @@ create_wrapper () { | |||
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` |
286 | cat <<END >$cmd | 286 | cat <<END >$cmd |
287 | #!/bin/bash | 287 | #!/bin/bash |
288 | realpath=\`readlink -fn \$0\` | 288 | realpath=\`readlink -fn \$0\` |
289 | export $@ | 289 | export $@ |
290 | exec -a $cmd \`dirname \$realpath\`/$cmdname "\$@" | 290 | exec -a \`dirname \$realpath\`/$cmdname \`dirname \$realpath\`/$cmdname.real "\$@" |
291 | END | 291 | END |
292 | chmod +x $cmd | 292 | chmod +x $cmd |
293 | } | 293 | } |