Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 591 Bytes
#!/bin/bash
if [[ ! -n "$B2G_DIR" ]]; then
B2G_DIR=$(cd `dirname ${BASH_SOURCE[0]}`; pwd)
fi
. "$B2G_DIR/.config"
if [ $? -ne 0 ]; then
echo Could not load .config. Did you run config.sh?
exit -1
fi
if [ -f "$B2G_DIR/.userconfig" ]; then
. "$B2G_DIR/.userconfig"
fi
# Use default Gecko location if it's not provided in config files.
if [ -z $GECKO_PATH ]; then
GECKO_PATH=$B2G_DIR/gecko
fi
VARIANT=${VARIANT:-eng}
PRODUCT_NAME=${PRODUCT_NAME:-full_${DEVICE}}
DEVICE=${DEVICE:-${PRODUCT_NAME}}
LUNCH=${LUNCH:-${PRODUCT_NAME}-${VARIANT}}
DEVICE_DIR=${DEVICE_DIR:-device/*/$DEVICE}