#!/bin/bash
#
# Copyright (C) 2019-Present A-Team Digital Solutions
#

# Rom - Lineage
if [[ $BUILD_COMMAND == "lineage" ]]; then
   LUNCH_COMMAND="lunch ${ROM_BUILD_NAME}_${DEVICE_NAME}-${ROM_TARGET_RELEASE}-${BUILD_VARIANT}"
   ROM_BUILD_COMMAND="brunch $DEVICE_CODENAME"
   export LUNCH_COMMAND
   export ROM_BUILD_COMMAND

# Rom - Derpfest
elif [[ $BUILD_COMMAND == "derpfest" ]]; then
   LUNCH_COMMAND="lunch ${ROM_BUILD_NAME}_${DEVICE_NAME}-${ROM_TARGET_RELEASE}-${BUILD_VARIANT}"
   ROM_BUILD_COMMAND="m derp"
   export LUNCH_COMMAND
   export ROM_BUILD_COMMAND

# Default Rom Build Command from rom.conf
else
   LUNCH_COMMAND="lunch ${ROM_BUILD_NAME}_${DEVICE_NAME}-${ROM_TARGET_RELEASE}-${BUILD_VARIANT}"
   ROM_BUILD_COMMAND="$DEFAULT_ROM_BUILD_COMMAND"
   export LUNCH_COMMAND
   export ROM_BUILD_COMMAND

fi # LEAVE THIS !!


