OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 # Copyright (c) 2010 The Chromium OS 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 # Builds the gmock deb packages and installs them. |
| 7 |
| 8 # Load common constants. This should be the first executable line. |
| 9 # The path to common.sh should be relative to your script's location. |
| 10 COMMON_SH="$(dirname "$0")/../../scripts/common.sh" |
| 11 . "$COMMON_SH" |
| 12 |
| 13 # Link debian/ into the build directory. |
| 14 set -e # make sure we don't delete anything we're using on error |
| 15 pushd $(dirname "$0")/files |
| 16 rm -rf debian |
| 17 ln -s ../debian debian |
| 18 set +e |
| 19 popd |
| 20 |
| 21 # Build the package |
| 22 TOP_SCRIPT_DIR="$(dirname "$0")/files" # override top level from common |
| 23 make_pkg_common "*gmock" "$@" # *gmock covers the various output prefixes |
| 24 mv libgmock-dev*.deb "$OUT_DIR" # it still misses the -dev pkg |
| 25 |
| 26 # Install for use by other packages in the chroot |
| 27 sudo -E dpkg -i "${OUT_DIR}/libgmock"_*.deb |
| 28 sudo -E dpkg -i "${OUT_DIR}/libgmock-dev"_*.deb |
OLD | NEW |