FloatImg/build.sh

40 lines
479 B
Bash
Raw Normal View History

2019-03-03 16:22:55 +01:00
#!/bin/bash
2019-05-24 17:40:13 +02:00
# ------------------------------------------------------------------
function build
{
echo ============= $1 ==============
curdir=${PWD}
cd $1
make
2019-03-03 16:22:55 +01:00
error=$?
2019-05-24 17:40:13 +02:00
cd ${curdir}
2019-03-03 16:22:55 +01:00
2019-05-24 17:40:13 +02:00
if [ ${error} -ne 0 ]
then
echo === error on $1 = ${error}
exit
2019-03-03 16:22:55 +01:00
fi
2019-05-24 17:40:13 +02:00
}
# ------------------------------------------------------------------
build lib
build funcs
build tools
# ------------------------------------------------------------------
2019-03-03 16:22:55 +01:00
cd tools
echo
2019-05-24 17:40:13 +02:00
make
2019-03-03 16:22:55 +01:00
error=$?
cd ..
echo