mirror of
https://github.com/nasa/fpp.git
synced 2025-12-12 15:31:41 -06:00
18 lines
525 B
Bash
Executable File
18 lines
525 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# ----------------------------------------------------------------------
|
|
# Compile ref C++ files, to check them for validity
|
|
# ----------------------------------------------------------------------
|
|
|
|
fprime_gcc=../../../scripts/fprime-gcc
|
|
|
|
for file in `find . -name 'FppConstants_*.ref.cpp'`
|
|
do
|
|
echo "compiling $file"
|
|
base=`echo $file | sed 's;\.cpp;;'`
|
|
dest_base=`echo $base | sed 's;\(.*FppConstants\).*;\1;'`
|
|
cp $base.hpp $dest_base.hpp
|
|
cp $base.cpp $dest_base.cpp
|
|
$fprime_gcc -c $dest_base.cpp
|
|
done
|