OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # Builds the .deb package. |
| 8 |
| 9 # Load common constants. This should be the first executable line. |
| 10 # The path to common.sh should be relative to your script's location. |
| 11 COMMON_SH="$(dirname "$0")/../../scripts/common.sh" |
| 12 . "$COMMON_SH" |
| 13 |
| 14 # Command line options |
| 15 DEFINE_string build_root "$DEFAULT_BUILD_ROOT" "Root of build output" |
| 16 |
| 17 # Parse command line and update positional args |
| 18 FLAGS "$@" || exit 1 |
| 19 eval set -- "${FLAGS_ARGV}" |
| 20 |
| 21 # Die on any errors |
| 22 set -e |
| 23 |
| 24 # Build the package |
| 25 pushd "$TOP_SCRIPT_DIR/files" |
| 26 ./configure --prefix=/usr |
| 27 # No 'deb' target, so do straight install |
| 28 make -j$NUM_JOBS |
| 29 sudo -E make install |
| 30 popd |
OLD | NEW |