Chromium Code Reviews| Index: build_tools/naclports.sh |
| diff --git a/build_tools/naclports.sh b/build_tools/naclports.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..30bb6bdcbd6bb23d95e974b9d9fb6cbff6cfbd1c |
| --- /dev/null |
| +++ b/build_tools/naclports.sh |
| @@ -0,0 +1,27 @@ |
| +#!/bin/bash |
| +# Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| +# |
| +# Executable entry point for building nacl ports. |
| +# This script must be run from the indivdual port directory (containing |
| +# pkg_info and build.sh). Most of the code and heavy lifting is in |
| +# common.sh. |
| + |
| +readonly SCRIPT_DIR=$(cd "$(dirname "$BASH_SOURCE")" ; pwd) |
| + |
| +if [ ! -f pkg_info ]; then |
| + echo "No pkg_info found in current directory" |
| + exit 1 |
| +fi |
| +. pkg_info |
| + |
| +. ${SCRIPT_DIR}/common.sh |
| + |
| +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
|
| + echo "No build.sh found in current directory" |
| + exit 1 |
| +fi |
| +. build.sh |
| + |
| +NaclportsMain "$@" |