mirror of
https://github.com/nasa/fpp.git
synced 2025-12-11 03:05:32 -06:00
23 lines
609 B
Bash
Executable File
23 lines
609 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 'FppConstantsAc_*.ref.cpp'`
|
|
do
|
|
base=`basename $file .cpp`
|
|
dest_base=FppConstantsAc
|
|
for suffix in hpp cpp
|
|
do
|
|
echo "copying $base.$suffix to $dest_base.$suffix"
|
|
cp $base.$suffix $dest_base.$suffix
|
|
done
|
|
echo "compiling $dest_base.cpp"
|
|
$fprime_gcc -I../../.. -I ../fprime -c $dest_base.cpp
|
|
done
|