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

Side by Side Diff: src/common/make_pkg.sh

Issue 523109: Install libchrome-dev and libchromeos-dev packages (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 PKG_BASE="libchromeos"
15
16 # All packages are built in the chroot
17 assert_inside_chroot
18
19 # Command line options
20 DEFINE_string build_root "$DEFAULT_BUILD_ROOT" "Root of build output"
21
22 # Parse command line and update positional args
23 FLAGS "$@" || exit 1
24 eval set -- "${FLAGS_ARGV}"
25
26 # Die on any errors
27 set -e
28
29 # Make output dir
30 OUT_DIR="$FLAGS_build_root/x86/local_packages"
31 mkdir -p "${OUT_DIR}"
32
33 # Remove previous package from output dir
34 rm -f "${OUT_DIR}/${PKG_BASE}"-dev_*.deb
35
36 # Rebuild the package
37 pushd "$TOP_SCRIPT_DIR"
38 rm -f ../${PKG_BASE}-dev_*.deb
39 dpkg-buildpackage -b -tc -us -uc -j$NUM_JOBS
40 mv ../${PKG_BASE}-dev_*.deb "$OUT_DIR"
41 rm ../${PKG_BASE}_*.changes
42 popd
43
44 # Install packages that are necessary for building later packages.
45 sudo -E dpkg -i "${OUT_DIR}/${PKG_BASE}"-dev_*.deb
OLDNEW
« no previous file with comments | « no previous file | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698