oe-setup-builddir: small rework
authorMatthieu Crapet <Matthieu.Crapet@ingenico.com>
Wed, 12 Mar 2014 09:15:26 +0000 (10:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Mar 2014 13:04:53 +0000 (06:04 -0700)
commitb7b827eef43fbd661a9e1876fc82e3d330d61003
tree924d13b96e5011efc58140e8c64c260ae7903275
parent362a02400f5b2204153d17d3bc029627adfedadb
oe-setup-builddir: small rework

Changes:
- drop useless subshell creation in test:
if ! (test -r "$BUILDDIR/conf/local.conf"); then$
- replace "source" builtin by "." (bashsism)
- fix indentation 4 spaces (drop some tabs too)
- fix return => exit  (return is not allowed in main)
- drop "sed -i" (doesn't exist in BSD sed)
- for homogeneity, always use [ ] (instead of test)
- replace old [ "x" = "x$VAR" ] by [ -z "$VAR" ]

(From OE-Core rev: 3a116577446f02bda0ef4e035360293ff73c9eef)

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-setup-builddir