diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-12-17 16:48:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-18 13:51:36 +0000 |
commit | 627f0d6adcfe281ef0487bf15a35151f1ceff194 (patch) | |
tree | 7d61c9623453f05168c261ca0a3d7b289f0cd8d4 /bin | |
parent | 0e7812b5512e609ea815db30be1d7caca896ab60 (diff) | |
download | bitbake-627f0d6adcfe281ef0487bf15a35151f1ceff194.tar.gz |
toaster: move setting of default values
Set default values of script parameters just before
they are parsed to increase readability.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/toaster | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/toaster b/bin/toaster index 6dd20c11d..7cecc7b3c 100755 --- a/bin/toaster +++ b/bin/toaster @@ -159,12 +159,7 @@ fi BBBASEDIR=`dirname $TOASTER`/.. MANAGE=$BBBASEDIR/lib/toaster/manage.py OEROOT=`dirname $TOASTER`/../.. -NOTOASTERUI=0 -WEBSERVER=1 -TOASTER_BRBE="" -if [ "$WEB_PORT" = "" ]; then - WEB_PORT="8000" -fi + # this is the configuraton file we are using for toaster # we are using the same logic that oe-setup-builddir uses # (based on TEMPLATECONF and .templateconf) to determine @@ -206,7 +201,11 @@ fi # make sure that the toaster.sqlite file doesn't default to `pwd` like it currently does. export TOASTER_DIR=`pwd` +NOTOASTERUI=0 +WEBSERVER=1 NOBROWSER=0 +TOASTER_BRBE="" +WEB_PORT="8000" for param in $*; do case $param in |