-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap
executable file
·37 lines (32 loc) · 1001 Bytes
/
bootstrap
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
#!/bin/sh
if [ x`uname` = x"Darwin" ]; then
LIBTOOLIZE="glibtoolize --force --copy"
else
LIBTOOLIZE="libtoolize --force --copy"
fi
# do patch: s/type::nil/type::nil_/g
# linear/any.h
patch_file="`pwd`/patches/any.h.ios.patch"
(cd deps/linear-cpp/include/linear; patch -N < $patch_file)
# test/any_test.cpp
patch_file="`pwd`/patches/any_test.cpp.ios.patch"
(cd deps/linear-cpp/test; patch -N < $patch_file)
# linear/nil.h
patch_file="`pwd`/patches/nil.h.ios.patch"
(cd deps/linear-cpp/include/linear; patch -N < $patch_file)
# linear/optional.h
patch_file="`pwd`/patches/optional.h.ios.patch"
(cd deps/linear-cpp/include/linear; patch -N < $patch_file)
# test/optional_test.cpp
patch_file="`pwd`/patches/optional_test.cpp.ios.patch"
(cd deps/linear-cpp/test; patch -N < $patch_file)
# break on error
set -ex
# linear-cpp
(cd deps/linear-cpp; sh ./bootstrap >/dev/null 2>&1)
# linear-ios
$LIBTOOLIZE >/dev/null 2>&1
aclocal -I m4
autoheader
automake --foreign --add-missing --copy
autoconf