[bitbake-devel] [PATCH 2/4] toaster: get rid of SRCFILE

brian avery avery.brian at gmail.com
Thu Oct 15 16:34:15 UTC 2015


From: Ed Bartosh <ed.bartosh at linux.intel.com>

Used TOASTER variable instead of SRCFILE as they're
essentially the same.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: brian avery <avery.brian at gmail.com>
---
 bin/toaster | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/toaster b/bin/toaster
index 75d3390..d7c5a84 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -232,9 +232,7 @@ for param in $*; do
     esac
 done
 
-[ -n "${BASH_SOURCE}" ] && SRCFILE=${BASH_SOURCE} || SRCFILE=$_
-
-if [ `basename \"$0\"` = `basename \"${SRCFILE}\"` ]; then
+if [ `basename \"$0\"` = `basename \"${TOASTER}\"` ]; then
     # We are called as standalone. We refuse to run in a build environment - we need the interactive mode for that.
     # Start just the web server, point the web browser to the interface, and start any Django services.
 
-- 
1.9.1




More information about the bitbake-devel mailing list