#!/bin/sh -xe

if [ -d "${HOME}/.elementary" ]; then
    rm -rf "${HOME}/.elementary"
fi

DISTRIBUTION_DIR="platforms/tizen-2.3/common/efl-tool/efl-tools"
ETC_FONTS_DIR="${INSTALLED_PATH}/${DISTRIBUTION_DIR}/etc/fonts"
FC_CACHE_PATH="${INSTALLED_PATH}/${DISTRIBUTION_DIR}/bin/fc-cache"

if [[ -d ${ETC_FONTS_DIR} && -e ${FC_CACHE_PATH} ]]; then
    FONTCONFIG_PATH=${ETC_FONTS_DIR} ${FC_CACHE_PATH}
fi
