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

Unified Diff: ports/snes9x/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/scummvm/build.sh ('k') | ports/speex/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/snes9x/build.sh
diff --git a/ports/snes9x/build.sh b/ports/snes9x/build.sh
old mode 100755
new mode 100644
index 1f9f7d03135f0dc971c68122d034f0b29ba7bef0..bb50d868ebf1765fb7b1509caccd9d5b7cd4fabc
--- a/ports/snes9x/build.sh
+++ b/ports/snes9x/build.sh
@@ -2,18 +2,10 @@
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-#
-# nacl-snes-1.53.sh
-#
-# Usage: nacl-snes-1.53.sh
-#
-# This script downloads, patches, and builds an snes9x-based SNES emulator for
-# Native Client.
-
-source pkg_info
PACKAGE_DIR=${PACKAGE_NAME}-src
-source ../../build_tools/common.sh
+SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
+BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR}
EXECUTABLES=snes9x
NACL_CONFIGURE_PATH=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/unix/configure
@@ -43,13 +35,11 @@ ConfigureStep() {
# This configure script generates a Makefile that checks timestamps on
# configure.ac, configure and Makefile.in. Copy them from the unix directory.
- cp ../unix/{configure.ac,configure,Makefile.in} .
+ LogExecute cp ../unix/{configure.ac,configure,Makefile.in} .
touch Makefile
}
InstallStep(){
- local SRC_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
- local BUILD_DIR=${SRC_DIR}/${NACL_BUILD_SUBDIR}
MakeDir ${PUBLISH_DIR}
install ${START_DIR}/snes9x.html ${PUBLISH_DIR}
install ${START_DIR}/snes9x.js ${PUBLISH_DIR}
@@ -64,6 +54,3 @@ InstallStep(){
sed -i.bak 's/x-nacl/x-pnacl/' ${PUBLISH_DIR}/snes9x.js
fi
}
-
-PackageInstall
-exit 0
« no previous file with comments | « ports/scummvm/build.sh ('k') | ports/speex/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698