1#!/bin/bash -ex 2 3# check if we're building for the simulator 4if [ "${RC_ProjectName%_Sim}" != "${RC_ProjectName}" ] ; then 5 if [ -n ${DSTROOT} -a -d ${DSTROOT}/usr ] ; then 6 rm -rf ${DSTROOT}/usr 7 fi 8fi 9