export OEROOT
. $OEROOT/scripts/oe-buildenv-internal && \
$OEROOT/scripts/oe-setup-builddir && \
- [ -n "$BUILDDIR" ] && cd $BUILDDIR
+ [ -n "$BUILDDIR" ] && cd "$BUILDDIR"
unset OEROOT
unset BBPATH
unset THIS_SCRIPT
exit 1
fi
-mkdir -p $BUILDDIR/conf
+mkdir -p "$BUILDDIR/conf"
if [ ! -d "$BUILDDIR" ]; then
echo >&2 "Error: The builddir ($BUILDDIR) does not exist!"
cd "$BUILDDIR"
if [ -f "$BUILDDIR/conf/templateconf.cfg" ]; then
- TEMPLATECONF=$(cat $BUILDDIR/conf/templateconf.cfg)
+ TEMPLATECONF=$(cat "$BUILDDIR/conf/templateconf.cfg")
fi
. $OEROOT/.templateconf
if [ ! -f "$BUILDDIR/conf/templateconf.cfg" ]; then
- echo "$TEMPLATECONF" >$BUILDDIR/conf/templateconf.cfg
+ echo "$TEMPLATECONF" >"$BUILDDIR/conf/templateconf.cfg"
fi
#
common configuration options are commented.
EOM
- cp -f $OECORELOCALCONF $BUILDDIR/conf/local.conf
+ cp -f $OECORELOCALCONF "$BUILDDIR/conf/local.conf"
SHOWYPDOC=yes
fi
# to replace it for compatibility.
sed -e "s|##OEROOT##|$OEROOT|g" \
-e "s|##COREBASE##|$OEROOT|g" \
- $OECORELAYERCONF > $BUILDDIR/conf/bblayers.conf
+ $OECORELAYERCONF > "$BUILDDIR/conf/bblayers.conf"
SHOWYPDOC=yes
fi