summaryrefslogtreecommitdiffstats
path: root/inc/env.inc.sh
blob: bab613c84058494e25d41076851b7fd1fc25b8d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
slxsettings=$(slxsettings 2>/dev/null )
if [ $? -eq 0 ]; then
  buildrootpath=$(slxsettings |grep public-path | sed -e "s,^.*='\(.*\)'$,\1,")
  buildrootpath="$buildrootpath/buildroot"
else 
  buildrootpath="/tmp/buildroot"
fi

SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`

BROOT_BASE_DIR=$SCRIPTPATH