Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | #!/bin/bash |
michael@0 | 2 | # Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. |
michael@0 | 3 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 4 | # found in the LICENSE file. |
michael@0 | 5 | |
michael@0 | 6 | # Generates various components of GLSL ES preprocessor. |
michael@0 | 7 | |
michael@0 | 8 | run_flex() |
michael@0 | 9 | { |
michael@0 | 10 | input_file=$script_dir/$1 |
michael@0 | 11 | output_source=$script_dir/$2 |
michael@0 | 12 | flex --noline --nounistd --outfile=$output_source $input_file |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | run_bison() |
michael@0 | 16 | { |
michael@0 | 17 | input_file=$script_dir/$1 |
michael@0 | 18 | output_source=$script_dir/$2 |
michael@0 | 19 | bison --no-lines --skeleton=yacc.c --output=$output_source $input_file |
michael@0 | 20 | } |
michael@0 | 21 | |
michael@0 | 22 | script_dir=$(dirname $0) |
michael@0 | 23 | |
michael@0 | 24 | # Generate preprocessor |
michael@0 | 25 | run_flex Tokenizer.l Tokenizer.cpp |
michael@0 | 26 | run_bison ExpressionParser.y ExpressionParser.cpp |
michael@0 | 27 | patch --silent --forward < 64bit-tokenizer-safety.patch |