From f9c57cd36475040ec56010058d7a542733e9cc54 Mon Sep 17 00:00:00 2001 From: Stephen Date: Mon, 14 Nov 2016 14:47:27 -0800 Subject: [PATCH] Update install-cmocka-linux.sh --- install-cmocka-linux.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install-cmocka-linux.sh b/install-cmocka-linux.sh index 86b5df11..24594db7 100755 --- a/install-cmocka-linux.sh +++ b/install-cmocka-linux.sh @@ -1,12 +1,12 @@ -#!/bin/bash +#!/bin/sh set -ex mkdir cmocka wget https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz -O /tmp/cmocka-1.1.0.tar.xz tar -xvf /tmp/cmocka-1.1.0.tar.xz -C /tmp -if [ "$(expr substr $(uname -s) 1 5)" == "MINGW" ] ; then -cd cmocka && which cmake && cmake -G "MinGW Makefiles" /tmp/cmocka-1.1.0 && make -else cd cmocka && cmake /tmp/cmocka-1.1.0 && make +# cmake builds an so instead of a dll in mingw/msys +if [[ ! -z $MSYSTEM ]]; then +cp src/cmocka.so src/cmocka.dll fi -#cmocka does not include headers in build +# cmocka does not include headers in build cp -R /tmp/cmocka-1.1.0/include/ .