OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 set -x |
| 7 set -e |
| 8 set -u |
| 9 |
| 10 declare -r RAGEL_VERSION=6.7 |
| 11 |
| 12 if [[ "$(uname -s)" = "Darwin" ]] ; then |
| 13 PLATFORM=mac |
| 14 else |
| 15 case "$(uname -o)" in |
| 16 *cygwin* ) |
| 17 PLATFORM=cygwin ;; |
| 18 *Linux* ) |
| 19 PLATFORM=linux ;; |
| 20 esac |
| 21 fi |
| 22 |
| 23 cd "$(dirname "$0")" |
| 24 rm -rf ragel-${RAGEL_VERSION} |
| 25 tar xSvpf ragel-${RAGEL_VERSION}.tar.gz |
| 26 ( |
| 27 cd ragel-${RAGEL_VERSION} |
| 28 for patch in ../??-ragel-${RAGEL_VERSION}.*.patch ; do |
| 29 patch -p0 < $patch |
| 30 done |
| 31 ./configure |
| 32 make -j16 \ |
| 33 CXXFLAGS="-m32 -O3" \ |
| 34 CXXLD='gcc -s' \ |
| 35 LIBS='-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic' |
| 36 cp -fv ragel/ragel ../ragel.${PLATFORM} |
| 37 ) |
| 38 rm -rf ragel-6.7 |
OLD | NEW |