diff options
Diffstat (limited to 'oe-init-build-env-memres')
-rwxr-xr-x | oe-init-build-env-memres | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/oe-init-build-env-memres b/oe-init-build-env-memres index 9e1425ea83..71a4857f5b 100755 --- a/oe-init-build-env-memres +++ b/oe-init-build-env-memres @@ -49,9 +49,9 @@ if [ -z "$ZSH_NAME" ] && [ "$0" = "$THIS_SCRIPT" ]; then exit 1 fi +THIS_SCRIPT=$(readlink -f $THIS_SCRIPT) if [ -z "$OEROOT" ]; then OEROOT=$(dirname "$THIS_SCRIPT") - OEROOT=$(readlink -f "$OEROOT") fi unset THIS_SCRIPT @@ -61,6 +61,10 @@ export OEROOT unset OEROOT return 1 } + +# Create a symlink +ln -sf $OEROOT/oe-init-build-env-memres $BUILDDIR + unset OEROOT [ -z "$BUILDDIR" ] || cd "$BUILDDIR" |