summaryrefslogtreecommitdiffstats
path: root/setdevenv
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2005-08-31 11:21:44 +0000
committerMatthew Allum <mallum@openedhand.com>2005-08-31 11:21:44 +0000
commit8e65c870f9b2edb71b5e39d4a7314eca0c5a0f9a (patch)
tree1bd78c7d1e61885dbac536918fa337c28e2e8592 /setdevenv
parentd3fa3b8f9c1e302a532cee20278f38fc59cc32cb (diff)
downloadpoky-8e65c870f9b2edb71b5e39d4a7314eca0c5a0f9a.tar.gz
Make setdevenv automagically setup local.conf if it dont exist
git-svn-id: https://svn.o-hand.com/repos/poky@4 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'setdevenv')
-rwxr-xr-xsetdevenv11
1 files changed, 8 insertions, 3 deletions
diff --git a/setdevenv b/setdevenv
index c6945ca16a..0c3c572fe0 100755
--- a/setdevenv
+++ b/setdevenv
@@ -4,7 +4,7 @@
4# Change this to the location of this file. 4# Change this to the location of this file.
5# Also update the locations at the top of conf/local.conf 5# Also update the locations at the top of conf/local.conf
6# 6#
7OEROOT=/usr/ohoe/ 7OEROOT=`pwd`
8 8
9BBDIR=$OEROOT/bitbake/ 9BBDIR=$OEROOT/bitbake/
10PKGDIR=$OEROOT/openembedded/ 10PKGDIR=$OEROOT/openembedded/
@@ -20,10 +20,15 @@ PKGDIR=`readlink -f $PKGDIR`
20BUILDDIR=`readlink -f $BUILDDIR` 20BUILDDIR=`readlink -f $BUILDDIR`
21 21
22if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then 22if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
23 echo >&2 "Error: Not all directories exist!" 23 echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?"
24 exit 1 24 exit 1
25fi 25fi
26 26
27if !(test -r $PKGDIR/conf/local.conf); then
28 echo "Setting up initial '$PKGDIR/conf/local.conf'."
29 cat $PKGDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|" > $PKGDIR/conf/local.conf
30fi
31
27BBPATH=$BBDIR 32BBPATH=$BBDIR
28if test x"$BBDIR" != x"$PKGDIR"; then 33if test x"$BBDIR" != x"$PKGDIR"; then
29 BBPATH=$PKGDIR:$BBPATH 34 BBPATH=$PKGDIR:$BBPATH