Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: src/third_party/gmock/make_pkg.sh

Issue 536056: Bump gtest to 1.4.0 and add gmock 1.4.0 (Closed)
Patch Set: fixed nits from cjwatson Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/third_party/gmock/debian/rules ('k') | src/third_party/gtest/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/third_party/gmock/make_pkg.sh
diff --git a/src/third_party/gmock/make_pkg.sh b/src/third_party/gmock/make_pkg.sh
new file mode 100755
index 0000000000000000000000000000000000000000..4c8094545a0a497f884d6d82f021c39daf864806
--- /dev/null
+++ b/src/third_party/gmock/make_pkg.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+# Builds the gmock deb packages and installs them.
+
+# Load common constants. This should be the first executable line.
+# The path to common.sh should be relative to your script's location.
+COMMON_SH="$(dirname "$0")/../../scripts/common.sh"
+. "$COMMON_SH"
+
+# Link debian/ into the build directory.
+set -e # make sure we don't delete anything we're using on error
+pushd $(dirname "$0")/files
+rm -rf debian
+ln -s ../debian debian
+set +e
+popd
+
+# Build the package
+TOP_SCRIPT_DIR="$(dirname "$0")/files" # override top level from common
+make_pkg_common "*gmock" "$@" # *gmock covers the various output prefixes
+mv libgmock-dev*.deb "$OUT_DIR" # it still misses the -dev pkg
+
+# Install for use by other packages in the chroot
+sudo -E dpkg -i "${OUT_DIR}/libgmock"_*.deb
+sudo -E dpkg -i "${OUT_DIR}/libgmock-dev"_*.deb
« no previous file with comments | « src/third_party/gmock/debian/rules ('k') | src/third_party/gtest/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698