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

Unified Diff: src/platform/dev/gmerge

Issue 661447: First version of the new devserver client (Closed)
Patch Set: Created 10 years, 10 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 | « src/platform/dev/devserver.py ('k') | src/platform/dev/static/pkgroot » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/dev/gmerge
diff --git a/src/platform/dev/gmerge b/src/platform/dev/gmerge
new file mode 100755
index 0000000000000000000000000000000000000000..2470a610e71713133323a927841235367db52a55
--- /dev/null
+++ b/src/platform/dev/gmerge
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+set -e
+
+DEVKIT_URL=$(grep ^CHROMEOS_DEVSERVER /etc/lsb-release | cut -d = -f 2-)
+BOARD_NAME=$(grep ^CHROMEOS_RELEASE_BOARD $dir/etc/lsb-release | cut -d = -f 2-)
+
+if [ -z $DEVKIT_URL ]
+then
+ echo "No devkit server specified in /etc/lsb-release"
+ exit 1
+fi
+
+if [ -z $BOARD_NAME ]
+then
+ echo "No board specified in /etc/lsb-release"
+ exit 1
+fi
+
+mount -o remount,rw /
+mkdir -p /etc/make.profile
+
+echo "Building $1"
+ESCAPED_PACKAGE=$(python -c "import urllib; print urllib.quote('''$1''')")
+ESCAPED_BOARD=$(python -c "import urllib; print urllib.quote('''${BOARD_NAME}''')")
adlr 2010/03/03 05:07:26 put a \ after, say, -c, to wrap to 80 chars. also
+wget $DEVKIT_URL/build --post-data="pkg=${ESCAPED_PACKAGE}&board=${ESCAPED_BOARD}"
+
+echo "Emerging $1"
+
+export PORTAGE_BINHOST="${DEVKIT_URL}/static/pkgroot/${BOARD_NAME}/packages"
+export PORTAGE_TMPDIR=/tmp
+export ACCEPT_KEYWORDS=x86
+
+emerge --getbinpkg --usepkgonly $1
« no previous file with comments | « src/platform/dev/devserver.py ('k') | src/platform/dev/static/pkgroot » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698