summaryrefslogtreecommitdiffstats
path: root/meta/classes/utils.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r--meta/classes/utils.bbclass4
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
288realpath=\`readlink -fn \$0\` 288realpath=\`readlink -fn \$0\`
289export $@ 289export $@
290exec -a $cmd \`dirname \$realpath\`/$cmdname "\$@" 290exec -a \`dirname \$realpath\`/$cmdname \`dirname \$realpath\`/$cmdname.real "\$@"
291END 291END
292 chmod +x $cmd 292 chmod +x $cmd
293} 293}