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

Side by Side Diff: src/third_party/ibus/make_pkg.sh

Issue 434033: Build IBus packages. (Closed)
Patch Set: copy files before patching Created 11 years 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 | « src/third_party/ibus-chewing/make_pkg.sh ('k') | no next file » | 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 # 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 # Remove previous package from output dir
25 PKG_BASE="ibus"
26 # TODO(yusukes): support ARM.
27 OUT_DIR="$FLAGS_build_root/x86/local_packages"
28 rm -f "${OUT_DIR}/"*"${PKG_BASE}"*_*.deb
29
30 # apply patches
31 pushd "${TOP_SCRIPT_DIR}/files"
32 touch ./ChangeLog
33 chmod u+x ./debian/rules
34 ./autogen.sh
35
36 # Build the package
37 dpkg-buildpackage -b -tc -us -uc
38 mv ../*"${PKG_BASE}"*_*.deb "${OUT_DIR}"
39 popd
40
41 # Install packages that are necessary for building ibus-chewing and ibus-anthy p ackages.
42 sudo -E dpkg -i "${OUT_DIR}/"*"${PKG_BASE}"*_*.deb
OLDNEW
« no previous file with comments | « src/third_party/ibus-chewing/make_pkg.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698