]> code.ossystems Code Review - openembedded-core.git/commitdiff
Add a check for sourcing present when running poky-init-build-env
authorMatthew Allum <mallum@openedhand.com>
Fri, 21 Jul 2006 21:05:18 +0000 (21:05 +0000)
committerMatthew Allum <mallum@openedhand.com>
Fri, 21 Jul 2006 21:05:18 +0000 (21:05 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@541 311d38ba-8fff-0310-9ca6-ca027cbcb966

poky-init-build-env

index 31757141a01b0a617ba577ec853c8d7d5b5643c0..cc1e7eb2d4fc9c064480a028200f2a1e781eff56 100755 (executable)
@@ -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