From fc195495c8cd731a611d3be6d5db2a4dcf0c2b71 Mon Sep 17 00:00:00 2001 From: Motoo Chhotoo Chintoo <72434298+motoo-tobbler@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:19:43 +0530 Subject: [PATCH] Added a shell-script for MacOS systems. (#403) This commit adds a shell-script to the root folder. The script serves the purpose of downloading and compiling the source code of libjuice library, and copying it to the appropriate location. This script is only intended for MacOS. --- mac-intel-essential.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 mac-intel-essential.sh diff --git a/mac-intel-essential.sh b/mac-intel-essential.sh new file mode 100644 index 000000000..0965bc670 --- /dev/null +++ b/mac-intel-essential.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +#Download +echo Downloading: libjuice +dl_ver=1.2.2 +curl -L https://github.com/paullouisageneau/libjuice/archive/refs/tags/v"$dl_ver".tar.gz -o libjuice.tar.gz +tar -xf libjuice.tar.gz + +#Compilation +echo ' +Compiling: libjuice' +cd libjuice-"$dl_ver" +cmake -B build && cd build +make -j2 + +#Copy to lib/coopnet/mac/libjuice.dylib +echo " +Copying: libjuice to 'lib/coopnet/mac'" +cp libjuice."$dl_ver".dylib ../../lib/coopnet/mac/libjuice."$dl_ver".dylib + +echo Done