1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00
antd-web-apps/get/shs/antd.sh

25 lines
814 B
Bash
Raw Permalink Normal View History

2018-09-22 19:11:40 +02:00
#! /bin/bash
2020-11-19 18:09:39 +01:00
# exit on error
set -e
if [ -z "$1" ]
then
echo "Please specify the version of the server"
exit 1
2018-09-22 19:11:40 +02:00
else
2020-11-19 18:09:39 +01:00
mkdir -p /tmp/antd
rm -rf /tmp/antd/*
echo "Downloading antd version $1"
cd /tmp/antd
wget --no-check-certificate "https://github.com/lxsang/ant-http/raw/master/dist/antd-$1.tar.gz"
[[ -f "antd-$1.tar.gz" ]] || { echo "Fail to download the source tarball"; exit 1; }
echo "extracting source..."
tar xzf "antd-$1.tar.gz"
[[ -d "antd-$1" ]] || { echo "Cannot extract the tarball"; exit 1; }
cd "antd-$1"
CPPFLAGS='-I/usr/local/ssl/include/' LDFLAGS='-L/usr/local/ssl/lib' ./configure --prefix=/usr --enable-debug=yes
CPPFLAGS='-I/usr/local/ssl/include/' LDFLAGS='-L/usr/local/ssl/lib' make
sudo make install
echo "Server installed"
fi