2020-11-06 16:42:44 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2020-11-24 16:21:34 +00:00
|
|
|
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
|
|
|
|
PATH="$SCRPATH"/bin:"$PATH"
|
2020-11-06 16:42:44 +00:00
|
|
|
|
2020-11-24 16:21:34 +00:00
|
|
|
if [ -f "$SCRPATH"/bin/fteqcc ]; then
|
2021-02-20 11:01:27 +00:00
|
|
|
export OLDDIR=$(pwd)
|
2021-02-22 16:27:22 +00:00
|
|
|
find "$SCRPATH" -name Makefile | grep 'src\/Makefile' | grep -v engine | while read MFILE_N; do
|
2021-02-20 11:01:27 +00:00
|
|
|
cd $(dirname $MFILE_N)
|
|
|
|
make
|
|
|
|
cd $OLDDIR
|
|
|
|
done;
|
2020-11-06 16:42:44 +00:00
|
|
|
else
|
|
|
|
printf "FTEQCC compiler is not present, please run build_engine.sh\n"
|
|
|
|
fi
|