Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/bin/bash | |
| 2 # Copyright (c) 2014 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 # Executable entry point for building nacl ports. | |
| 7 # This script must be run from the indivdual port directory (containing | |
| 8 # pkg_info and build.sh). Most of the code and heavy lifting is in | |
| 9 # common.sh. | |
| 10 | |
| 11 readonly SCRIPT_DIR=$(cd "$(dirname "$BASH_SOURCE")" ; pwd) | |
| 12 | |
| 13 if [ ! -f pkg_info ]; then | |
| 14 echo "No pkg_info found in current directory" | |
| 15 exit 1 | |
| 16 fi | |
| 17 . pkg_info | |
| 18 | |
| 19 . ${SCRIPT_DIR}/common.sh | |
| 20 | |
| 21 if [ ! -f pkg_info ]; then | |
|
binji
2014/01/13 23:05:42
build.sh
Sam Clegg
2014/01/14 01:54:38
Changed so that build.sh is optional
| |
| 22 echo "No build.sh found in current directory" | |
| 23 exit 1 | |
| 24 fi | |
| 25 . build.sh | |
| 26 | |
| 27 NaclportsMain "$@" | |
| OLD | NEW |