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

Side by Side Diff: ports/bochs/build.sh

Issue 132343007: Add top level build script for building packages. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ports/bash/build.sh ('k') | ports/boost/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 source pkg_info
7 source ../../build_tools/common.sh
8 6
9 # Linux disk image 7 # Linux disk image
10 readonly LINUX_IMG_URL=http://commondatastorage.googleapis.com/nativeclient-mirr or/nacl/bochs-linux-img.tar.gz 8 readonly LINUX_IMG_URL=http://commondatastorage.googleapis.com/nativeclient-mirr or/nacl/bochs-linux-img.tar.gz
11 readonly LINUX_IMG_NAME=linux-img 9 readonly LINUX_IMG_NAME=linux-img
12 10
13 BOCHS_EXAMPLE_DIR=${NACL_SRC}/ports/bochs 11 BOCHS_EXAMPLE_DIR=${NACL_SRC}/ports/bochs
14 EXECUTABLES=bochs 12 EXECUTABLES=bochs
15 13
16 ConfigureStep() { 14 ConfigureStep() {
17 Banner "Configuring ${PACKAGE_NAME}" 15 Banner "Configuring ${PACKAGE_NAME}"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 SHA1=${BOCHS_EXAMPLE_DIR}/$2/$2.sha1 117 SHA1=${BOCHS_EXAMPLE_DIR}/$2/$2.sha1
120 ImageDownloadStep $1 $2 ${SHA1} 118 ImageDownloadStep $1 $2 ${SHA1}
121 ImageExtractStep ${ARCHIVE_NAME} $2 119 ImageExtractStep ${ARCHIVE_NAME} $2
122 unset ARCHIVE_NAME 120 unset ARCHIVE_NAME
123 } 121 }
124 122
125 PackageInstall() { 123 PackageInstall() {
126 FetchLinuxStep ${LINUX_IMG_URL} ${LINUX_IMG_NAME} 124 FetchLinuxStep ${LINUX_IMG_URL} ${LINUX_IMG_NAME}
127 DefaultPackageInstall 125 DefaultPackageInstall
128 } 126 }
129
130 PackageInstall
131 exit 0
OLDNEW
« no previous file with comments | « ports/bash/build.sh ('k') | ports/boost/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698