1#!/bin/sh 2 3cd cmocka && mkdir build && cd build 4if [ "$(uname)" = Darwin ]; then 5cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. && make -j2 && sudo make install 6else # Linux 7cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make -j2 && sudo make install 8fi 9cd ../.. && make 10