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

Side by Side Diff: src/third_party/xserver-xorg-core/make_pkg.sh

Issue 536039: Move src/third_party/xserver-xorg-core to its own repo (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
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 # Make the package
15 PKG_BASE="xserver-xorg-core"
16
17 # Command line options
18 DEFINE_string build_root "$DEFAULT_BUILD_ROOT" "Root of build output"
19
20 # Parse command line and update positional args
21 FLAGS "$@" || exit 1
22 eval set -- "${FLAGS_ARGV}"
23
24 # Die on any errors
25 set -e
26
27 # Make output dir
28 OUT_DIR="$FLAGS_build_root/x86/local_packages"
29 mkdir -p "$OUT_DIR"
30
31 # Remove previous package from output dir
32 rm -f "$OUT_DIR"/${PKG_BASE}_*.deb
33
34 # Set up the debian build directory.
35 PKG_BUILD_DIR="${FLAGS_build_root}/${PKG_BASE}"
36 mkdir -p "$PKG_BUILD_DIR"
37 rm -rf "${PKG_BUILD_DIR}/build"
38 dpkg-source -x "$TOP_SCRIPT_DIR"/src/*.dsc "${PKG_BUILD_DIR}/build"
39
40 # Apply our patches.
41 CHROMEOS_PATCHES=`ls "${TOP_SCRIPT_DIR}"/*.patch`
42 for i in ${CHROMEOS_PATCHES}
43 do
44 patch -d "$PKG_BUILD_DIR"/build -p1 < "$i"
45 done
46
47 # Build the package. We up the version number before building so that the
48 # ChromeOS version will get chosen and won't conflict with the repository.
49 # TODO: Push the LDFLAGS into a patch along with other custom X Server
50 # configuration. The -lcrypto is currently needed for the xkbcomp patch.
51 pushd "$PKG_BUILD_DIR"/build
52 dch -i "ChromeOS Patches"
53 LDFLAGS=-lcrypto dpkg-buildpackage -j$NUM_JOBS -b -tc -us -uc
54 mv ../${PKG_BASE}_*.deb "$OUT_DIR"
55 rm -f ../${PKG_BASE}_*.changes
56 popd
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698