diff options
author | Richard Purdie <richard@openedhand.com> | 2007-07-17 13:26:55 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-07-17 13:26:55 +0000 |
commit | 21b7fabf6a3cfb92c9fb89e2df8791778d46fb46 (patch) | |
tree | 032949c3955d661ddfceec8bc7db0069cb2b6a21 /scripts | |
parent | 58184103e4b1785a7f743e9d3ea93aebce67e4b6 (diff) | |
download | poky-21b7fabf6a3cfb92c9fb89e2df8791778d46fb46.tar.gz |
poky-env-internal: Fix quoting
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2194 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts')
-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 | ||