mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-28 23:24:11 +02:00
49 lines
374 B
Bash
Executable File
49 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mkdir build
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
cd build
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
if [ $1 = "cpp11" ]
|
|
then
|
|
cmake -DMSGPACK_CXX11=ON ..
|
|
else
|
|
cmake ..
|
|
fi
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
make
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
make test
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
exit 0
|