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

Side by Side Diff: ports/jpeg6b/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/gsl/build.sh ('k') | ports/jpeg8d/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) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 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 EXECUTABLES="cjpeg djpeg jpegtran rdjpgcom wrjpgcom" 7 EXECUTABLES="cjpeg djpeg jpegtran rdjpgcom wrjpgcom"
10 8
11 InstallStep() { 9 InstallStep() {
12 MakeDir ${NACLPORTS_PREFIX}/man 10 MakeDir ${NACLPORTS_PREFIX}/man
13 } 11 }
14 12
15 TestStep() { 13 TestStep() {
16 for exe in ${EXECUTABLES}; do 14 for exe in ${EXECUTABLES}; do
17 mv ${exe} ${exe}${NACL_EXEEXT} 15 mv ${exe} ${exe}${NACL_EXEEXT}
18 done 16 done
19 17
20 if [ ${NACL_ARCH} = "pnacl" ]; then 18 if [ ${NACL_ARCH} = "pnacl" ]; then
21 for arch in x86-32 x86-64; do 19 for arch in x86-32 x86-64; do
22 for exe in ${EXECUTABLES}; do 20 for exe in ${EXECUTABLES}; do
23 WriteSelLdrScriptForPNaCl ${exe} ${exe}.${arch}.nexe ${arch} 21 WriteSelLdrScriptForPNaCl ${exe} ${exe}.${arch}.nexe ${arch}
24 done 22 done
25 make test 23 make test
26 done 24 done
27 else 25 else
28 for exe in ${EXECUTABLES}; do 26 for exe in ${EXECUTABLES}; do
29 WriteSelLdrScript ${exe} ${exe}${NACL_EXEEXT} 27 WriteSelLdrScript ${exe} ${exe}${NACL_EXEEXT}
30 done 28 done
31 make test 29 make test
32 fi 30 fi
33 } 31 }
34
35 DefaultPackageInstall
36 exit 0
OLDNEW
« no previous file with comments | « ports/gsl/build.sh ('k') | ports/jpeg8d/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698