forked from light-tech/LibGit2-On-iOS
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build-tools.sh
executable file
·54 lines (44 loc) · 1.1 KB
/
build-tools.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
# From https://gist.github.com/GraemeConradie/49d2f5962fa72952bc6c64ac093db2d5
##
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
##
export REPO_ROOT=`pwd`
export build=`pwd`/temp # or wherever you'd like to build
export install=`pwd`/tools
mkdir -p $build
##
# Autoconf
# http://ftpmirror.gnu.org/autoconf
cd $build
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar xzf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=$install
make
make install
# export PATH=$PATH:$install
##
# Automake
# http://ftpmirror.gnu.org/automake
cd $build
curl -OL http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz
tar xzf automake-1.15.tar.gz
cd automake-1.15
./configure --prefix=$install
make
make install
##
# Libtool
# http://ftpmirror.gnu.org/libtool
cd $build
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
tar xzf libtool-2.4.6.tar.gz
cd libtool-2.4.6
./configure --prefix=$install
make
make install
echo "Installation complete."
cd $REPO_ROOT
tar -cJf tools.tar.xz tools