adding v4l2 support
This commit is contained in:
42
build.sh
42
build.sh
@@ -1,30 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd lib
|
||||
echo ============= we are in $PWD
|
||||
make
|
||||
error=$?
|
||||
if [ 0 -ne $error ]; then
|
||||
printf "in %s err %d in %s\n" $PWD $error $0
|
||||
exit $error
|
||||
fi
|
||||
echo
|
||||
cd ..
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
cd funcs
|
||||
echo ============= we are in $PWD
|
||||
make
|
||||
function build
|
||||
{
|
||||
echo ============= $1 ==============
|
||||
curdir=${PWD}
|
||||
cd $1
|
||||
make
|
||||
error=$?
|
||||
if [ 0 -ne $error ]; then
|
||||
printf "in %s err %d in %s\n" $PWD $error $0
|
||||
exit $error
|
||||
cd ${curdir}
|
||||
|
||||
if [ ${error} -ne 0 ]
|
||||
then
|
||||
echo === error on $1 = ${error}
|
||||
exit
|
||||
fi
|
||||
echo
|
||||
cd ..
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
build lib
|
||||
build funcs
|
||||
build tools
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
cd tools
|
||||
echo
|
||||
make fimg2pnm addtga2fimg mkfimg png2fimg fimgstats fimg2png
|
||||
make
|
||||
error=$?
|
||||
cd ..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user