scripts/runqemu: grep for line beginning with TMPDIR
authorKhem Raj <raj.khem@gmail.com>
Tue, 2 Aug 2011 01:47:13 +0000 (18:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Aug 2011 13:32:10 +0000 (14:32 +0100)
commit55a6aaf11f66ce080744f6a45b82f919bdc43c30
tree6a402952f8309c53a6bc8791c0ea92142476d531
parentce76323d8e5b1229cfc03f01ec43247ccabd052c
scripts/runqemu: grep for line beginning with TMPDIR

Currently the grep regexp matches any occurance of
'TMPDIR=' but if you have another variable defined
e.g. OE_BUILD_TMPDIR=xxx then that gets picked up
too.

$ bitbake -e | grep TMPDIR=\"
TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc"
OE_BUILD_TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x"

So we become a bit more stringent and look for
line starting with TMPDIR

$ bitbake -e | grep ^TMPDIR=\"
TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc"

make sure that it greps
only TMPDIR=xxx occurance and not values of other variables
whose names happens to end with TMPDIR

(From OE-Core rev: 12ddf6c6a7559d97d9b8f84fcc89ed02e30df85d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu