#!/bin/bash # # Push all the generated files to the project # GENERATED=$1 RENDERED=./output if [ ! -e "$GENERATED" ] then echo usage: $0 '' exit -1 fi function deleteAndCopy { FILE=$1 SOURCE_DIR=$2 DEST_DIR=$3 echo copying $SOURCE_DIR/$FILE to $DEST_DIR rm -rf $DEST_DIR/$FILE cp -rf $SOURCE_DIR/$FILE $DEST_DIR } DESTINATION=/Users/poly/Downloads/Complete_JukeboxSDK_104_9_44_Mac/SDK/Examples/OminoInstrument_experiment/ deleteAndCopy resources $GENERATED $DESTINATION/GUI deleteAndCopy Output $RENDERED $DESTINATION/GUI deleteAndCopy motherboard_def.lua $GENERATED $DESTINATION deleteAndCopy info.lua $GENERATED $DESTINATION deleteAndCopy texts.lua $GENERATED $DESTINATION/Resources/English deleteAndCopy OmRack.h $GENERATED $DESTINATION