blob: 9d8b0a8882760c9df74ca5ca00cb7bc431f432ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
set -e
if test x"`uname`" = xDarwin ; then
sudo systemsetup -settimezone America/Los_Angeles
brew update || brew update || :
brew uninstall xctool && brew install --HEAD xctool
if ! which cmake >/dev/null ; then
brew install cmake
fi
elif test x"`uname`" = xLinux ; then
git clone --depth=1 https://github.com/dinhviethoa/libetpan
cd libetpan
./autogen.sh
make >/dev/null
sudo make install >/dev/null
cd ..
git clone --depth=1 https://github.com/dinhviethoa/ctemplate
cd ctemplate
./autogen.sh
./configure
make >/dev/null
sudo make install >/dev/null
cd ..
curl -O http://ftp.kernel.org/pub/linux/utils/util-linux/v2.27/util-linux-2.27.1.tar.xz
tar xf util-linux-2.27.1.tar.xz
cd util-linux-2.27.1
./configure
make libuuid.la
sudo make install-uuidincHEADERS
sudo cp .libs/libuuid.so /usr/lib
cd ..
sudo apt-get install libicu-dev
sudo apt-get install libtidy-dev
sudo apt-get install libxml2-dev
fi
|