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.bbclass52
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
248create_cmdline_wrapper () { 248create_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
265realpath=\`readlink -fn \$0\` 265realpath=\`readlink -fn \$0\`
266exec \`dirname \$realpath\`/$cmdname $@ "\$@" 266exec \`dirname \$realpath\`/$cmdname $@ "\$@"
267END 267END
268 chmod +x $cmd 268 chmod +x $cmd
269} 269}
270 270
271create_wrapper () { 271create_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
288realpath=\`readlink -fn \$0\` 288realpath=\`readlink -fn \$0\`
289exec env $@ \`dirname \$realpath\`/$cmdname "\$@" 289exec env $@ \`dirname \$realpath\`/$cmdname "\$@"
290END 290END
291 chmod +x $cmd 291 chmod +x $cmd
292} 292}
293 293
294def check_app_exists(app, d): 294def check_app_exists(app, d):