40 lines
479 B
Bash
Executable File
40 lines
479 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
function build
|
|
{
|
|
echo ============= $1 ==============
|
|
curdir=${PWD}
|
|
cd $1
|
|
make
|
|
error=$?
|
|
cd ${curdir}
|
|
|
|
if [ ${error} -ne 0 ]
|
|
then
|
|
echo === error on $1 = ${error}
|
|
exit
|
|
fi
|
|
}
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
build lib
|
|
build funcs
|
|
build tools
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
cd tools
|
|
echo
|
|
make
|
|
error=$?
|
|
cd ..
|
|
|
|
echo
|
|
|
|
|
|
|
|
|