mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-28 23:24:11 +02:00
40 lines
328 B
Bash
Executable File
40 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
|
|
./bootstrap
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
if [ $1 = "cpp11" ]
|
|
then
|
|
./configure CXXFLAGS="-std=c++11"
|
|
else
|
|
./configure
|
|
fi
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
make
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
make check
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
exit 0
|