summaryrefslogtreecommitdiffstats
path: root/oe-init-build-env
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-20 14:59:04 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-20 23:29:29 (GMT)
commit46d0cc3dc88307d69a7884c0e5c79e0c8d5e4dc7 (patch)
treea5ec6b373a47da71cd2e474aac453ce022579179 /oe-init-build-env
parent211ae3b4dfe5e55b8fa18cfb9c71fa37f06c9748 (diff)
downloadpoky-46d0cc3dc88307d69a7884c0e5c79e0c8d5e4dc7.tar.gz
Rename poky-init-build-env to oe-init-build-env
(From OE-Core rev: fa6176219b741eed346b21a3d923e9abc9b5442a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'oe-init-build-env')
-rwxr-xr-xoe-init-build-env44
1 files changed, 44 insertions, 0 deletions
diff --git a/oe-init-build-env b/oe-init-build-env
new file mode 100755
index 0000000..87929d1
--- /dev/null
+++ b/oe-init-build-env
@@ -0,0 +1,44 @@
1#!/bin/sh
2
3# Poky Build Enviroment Setup Script
4#
5# Copyright (C) 2006-2007 OpenedHand Ltd.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21#
22# Normally this is called as '. ./poky-init-buildenv builddir'
23#
24# This works in most shells (not dash), but not all of them pass arg1 when
25# being sourced. To workaround the shell limitation use "set arg1" prior
26# to sourcing this script.
27#
28if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./oe-init-build-env" ]; then
29 echo "Error: This script needs to be sourced. Please run as '. ./oe-init-build-env'"
30else
31 if [ -n "$BASH_SOURCE" ]; then
32 OEROOT="`dirname $BASH_SOURCE`"
33 else
34 OEROOT="`pwd`"
35 fi
36 OEROOT=`readlink -f "$OEROOT"`
37 export OEROOT
38 . $OEROOT/scripts/oe-buildenv-internal
39 $OEROOT/scripts/poky-setup-builddir
40 unset OEROOT
41 unset BBPATH
42 [ -n "$BUILDDIR" ] && cd $BUILDDIR
43fi
44