Rob Bocchino d1c922d14d Revise cpp-check scripts
Conform to changes in F Prime
2024-10-10 19:41:48 -07:00

19 lines
483 B
Bash
Executable File

#!/bin/sh
# ----------------------------------------------------------------------
# Compile ref C++ files, to check them for validity
# ----------------------------------------------------------------------
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/config -c $base.cpp
done