mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-08 21:18:03 -05:00
36 lines
666 B
Bash
Executable File
36 lines
666 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test `uname` = "Linux"; then
|
|
flags='cat /proc/cpuinfo'
|
|
elif test `uname` = Darwin; then
|
|
if ! type brew; then
|
|
echo Do you want me to install Homebrew?
|
|
echo Press RETURN to continue or any other key to abort
|
|
read ans
|
|
if test "$ans"; then
|
|
echo Aborting
|
|
exit 1
|
|
else
|
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
fi
|
|
fi
|
|
make tldr
|
|
else
|
|
echo OS unknown
|
|
exit 1
|
|
fi
|
|
|
|
if test "$flags"; then
|
|
if $flags | grep -q avx2; then
|
|
cpu=avx2
|
|
elif $flags | grep -q aes; then
|
|
cpu=aes
|
|
else
|
|
cpu=amd64
|
|
fi
|
|
|
|
cp -av bin/`uname`-$cpu/* .
|
|
fi
|
|
|
|
Scripts/setup-ssl.sh
|