#!/bin/bash echo "forcing refresh of scripts..."; echo ${CURRENT_ARCH} echo ${CONFIGURATION} echo ${BUILT_PRODUCTS_DIR} echo ${EXECUTABLE_NAME} if [ -d "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts" ]; then rm -r ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts/*; fi if [ -d "${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/res" ]; then rm -r ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/res; fi if [ "${CONFIGURATION}" = "Debug" ]; then echo Debugging rm -r ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts; cp -R -p ${SRCROOT}/../scripts ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts; # cp -R -p ${SRCROOT}/../scripts/main.lua ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts/main.lua; # cp -R -p ${SRCROOT}/../scripts/game.zip ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts/game.zip; else echo Releasing cp -R -p ${SRCROOT}/../scripts/main.lua ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts/main.lua; cp -R -p ${SRCROOT}/../scripts/game.zip ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/scripts/game.zip; fi cp -R -p ${SRCROOT}/../res ${BUILT_PRODUCTS_DIR}/${EXECUTABLE_NAME}.app/res;