summaryrefslogtreecommitdiff
path: root/poky-init-build-env
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2006-07-21 21:05:18 +0000
committerMatthew Allum <mallum@openedhand.com>2006-07-21 21:05:18 +0000
commit46c6968e5dbc0f851f006749eaeb656dfde195b1 (patch)
tree0ae61ae8a6b2f900cfbc8a1c77e527565ca2c273 /poky-init-build-env
parentf6f9596eab1ac9983a20a8506e4fadc116915077 (diff)
downloadopenembedded-core-46c6968e5dbc0f851f006749eaeb656dfde195b1.tar.gz
openembedded-core-46c6968e5dbc0f851f006749eaeb656dfde195b1.tar.bz2
openembedded-core-46c6968e5dbc0f851f006749eaeb656dfde195b1.zip
Add a check for sourcing present when running poky-init-build-env
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@541 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'poky-init-build-env')
-rwxr-xr-xpoky-init-build-env13
1 files changed, 11 insertions, 2 deletions
diff --git a/poky-init-build-env b/poky-init-build-env
index 31757141a0..cc1e7eb2d4 100755
--- a/poky-init-build-env
+++ b/poky-init-build-env
@@ -1,5 +1,10 @@
#!/bin/sh
+if test x"$0" = x"./poky-init-build-env"; then
+ echo "Error: Run via '. ./poky-init-build-env'"
+ exit 1
+fi
+
#
# Change this to the location of this file.
# Also update the locations at the top of conf/local.conf
@@ -9,6 +14,7 @@ OEROOT=`pwd`
BBDIR=$OEROOT/bitbake/
PKGDIR=$OEROOT/meta/
BUILDDIR=$OEROOT/build/
+MSG=''
PATH=$BBDIR/bin/:$PATH
@@ -25,8 +31,9 @@ if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
fi
if ! (test -r $BUILDDIR/conf/local.conf); then
- echo "Setting up initial '$PKGDIR/conf/local.conf'."
cat $BUILDDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|g" > $BUILDDIR/conf/local.conf
+ echo
+ echo "..Created initial 'build/conf/local.conf'"
fi
BBPATH=$BBDIR
@@ -46,4 +53,6 @@ export PATH LD_LIBRARY_PATH OEROOT
# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
export LANG=C
-echo Environment set up for Poky development.
+echo
+echo "### Shell environment set up for Poky builds. ###"
+echo \ No newline at end of file