mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
35 lines
483 B
Bash
Executable File
35 lines
483 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
|
|
cd "$SCRIPTPATH"/openssl
|
|
|
|
os=$(uname -s)
|
|
platform=""
|
|
|
|
case "$os" in
|
|
Linux*) platform="linux" ;;
|
|
Darwin*) platform="darwin64-x86_64-cc" ;;
|
|
*) exit ;;
|
|
esac
|
|
|
|
platformLinux=""
|
|
|
|
architecture=$(uname -m)
|
|
arch=""
|
|
|
|
if [[ "$platform" == "linux" ]]
|
|
then
|
|
case "$architecture" in
|
|
x86_64*) arch="-64" ;;
|
|
*) arch="-32" ;;
|
|
esac
|
|
fi
|
|
|
|
echo "$platform$arch"
|
|
|
|
perl ./Configure $platform$arch
|
|
./config
|
|
make
|