#!/bin/sh cd `dirname $0` fprime_gcc=../../../../../scripts/fprime-gcc for file in `find . -name '*.ref.cpp'` do base=`basename $file .ref.cpp` cp $base.ref.hpp $base.hpp cp $base.ref.cpp $base.cpp echo "compiling $base.cpp" $fprime_gcc -I../../fprime -c $base.cpp done