OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # Sometimes there isn't a pre-generated configure script, and we must first run | 6 # Sometimes there isn't a pre-generated configure script, and we must first run |
7 # autogen.sh to generate it. Even if there is one, sometimes we need to | 7 # autogen.sh to generate it. Even if there is one, sometimes we need to |
8 # re-generate it (in particular, the autoconf version on Trusty is newer than | 8 # re-generate it (in particular, the autoconf version on Trusty is newer than |
9 # what is expected by pre-generated configure scripts in some packages). | 9 # what is expected by pre-generated configure scripts in some packages). |
10 | 10 |
11 # Unfortunately, we can't run autogen.sh unconditionally whenever it's present, | 11 # Unfortunately, we can't run autogen.sh unconditionally whenever it's present, |
12 # as that sometimes breaks build. Which is why we have this file. | 12 # as that sometimes breaks build. Which is why we have this file. |
13 | 13 |
14 # Also, some packages may or may not have an autogen script, depending on | 14 # Also, some packages may or may not have an autogen script, depending on |
15 # version. Rather than clutter the GYP file with conditionals, we simply do | 15 # version. Rather than clutter the GYP file with conditionals, we simply do |
16 # nothing if the file is not present. | 16 # nothing if the file is not present. |
17 | 17 |
18 if [ -x ./autogen.sh ] | 18 if [ -x ./autogen.sh ] |
19 then | 19 then |
20 NOCONFIGURE=1 ./autogen.sh | 20 NOCONFIGURE=1 ./autogen.sh |
21 fi | 21 fi |
OLD | NEW |