mirror of
https://github.com/nasa/fpp.git
synced 2025-12-11 19:23:13 -06:00
19 lines
593 B
Bash
Executable File
19 lines
593 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# ----------------------------------------------------------------------
|
|
# Compile ref C++ files, to check them for validity
|
|
# ----------------------------------------------------------------------
|
|
|
|
fprime_gcc=../../../../scripts/fprime-gcc
|
|
export FPRIME_GCC_FLAGS="-Iinclude"
|
|
|
|
for file in `find . -name '*Ac.ref.cpp'`
|
|
do
|
|
echo "compiling $file"
|
|
base=`echo $file | sed 's;\.cpp;;'`
|
|
dest_base=`echo $base | sed 's;\(.*Ac\).*;\1;'`
|
|
cp $base.hpp $dest_base.hpp
|
|
cp $base.cpp $dest_base.cpp
|
|
$fprime_gcc -I../../.. -c $dest_base.cpp -Wno-gnu-zero-variadic-macro-arguments
|
|
done
|