mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-19 23:50:40 +02:00
48 lines
412 B
Bash
Executable File
48 lines
412 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
|
|
|
|
make install DESTDIR=`pwd`/install
|
|
|
|
ret=$?
|
|
if [ $ret -ne 0 ]
|
|
then
|
|
exit $ret
|
|
fi
|
|
|
|
exit 0
|