diff options
-rwxr-xr-x | scripts/poky-env-internal | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal index b1e5546bba..1b231bcdf4 100755 --- a/scripts/poky-env-internal +++ b/scripts/poky-env-internal | |||
@@ -24,30 +24,30 @@ | |||
24 | 24 | ||
25 | OEROOT=`pwd` | 25 | OEROOT=`pwd` |
26 | 26 | ||
27 | BBDIR=$OEROOT/bitbake/ | 27 | BBDIR="$OEROOT/bitbake/" |
28 | PKGDIR=$OEROOT/meta/ | 28 | PKGDIR="$OEROOT/meta/" |
29 | BUILDDIR=$OEROOT/build/ | 29 | BUILDDIR="$OEROOT/build/" |
30 | MSG='' | 30 | MSG='' |
31 | 31 | ||
32 | BUILD_ARCH=`uname -m` | 32 | BUILD_ARCH=`uname -m` |
33 | BUILD_OS=`uname | tr [A-Z] [a-z]` | 33 | BUILD_OS=`uname | tr [A-Z] [a-z]` |
34 | BUILD_SYS=$BUILD_ARCH-$BUILD_OS | 34 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" |
35 | 35 | ||
36 | PATH=$BBDIR/bin/:$OEROOT/scripts:$PATH | 36 | PATH="$BBDIR/bin/:$OEROOT/scripts:$PATH" |
37 | 37 | ||
38 | cd $BUILDDIR | 38 | cd "$BUILDDIR" |
39 | 39 | ||
40 | # Remove any symlinks from paths | 40 | # Remove any symlinks from paths |
41 | BBDIR=`readlink -f $BBDIR` | 41 | BBDIR=`readlink -f "$BBDIR"` |
42 | PKGDIR=`readlink -f $PKGDIR` | 42 | PKGDIR=`readlink -f "$PKGDIR"` |
43 | BUILDDIR=`readlink -f $BUILDDIR` | 43 | BUILDDIR=`readlink -f "$BUILDDIR"` |
44 | 44 | ||
45 | if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then | 45 | if ! (test -d "$BBDIR" && test -d "$PKGDIR" && test -d "$BUILDDIR"); then |
46 | echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?" | 46 | echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?" |
47 | exit 1 | 47 | exit 1 |
48 | fi | 48 | fi |
49 | 49 | ||
50 | if ! (test -r $BUILDDIR/conf/local.conf); then | 50 | if ! (test -r "$BUILDDIR/conf/local.conf"); then |
51 | cp -f $BUILDDIR/conf/local.conf.sample $BUILDDIR/conf/local.conf | 51 | cp -f $BUILDDIR/conf/local.conf.sample $BUILDDIR/conf/local.conf |
52 | fi | 52 | fi |
53 | 53 | ||