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

Side by Side Diff: src/platform/dev/gmerge

Issue 661447: First version of the new devserver client (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « src/platform/dev/devserver.py ('k') | src/platform/dev/static/pkgroot » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 set -e
8
9 DEVKIT_URL=$(grep ^CHROMEOS_DEVSERVER /etc/lsb-release | cut -d = -f 2-)
10 BOARD_NAME=$(grep ^CHROMEOS_RELEASE_BOARD $dir/etc/lsb-release | cut -d = -f 2-)
11
12 if [ -z $DEVKIT_URL ]
13 then
14 echo "No devkit server specified in /etc/lsb-release"
15 exit 1
16 fi
17
18 if [ -z $BOARD_NAME ]
19 then
20 echo "No board specified in /etc/lsb-release"
21 exit 1
22 fi
23
24 mount -o remount,rw /
25 mkdir -p /etc/make.profile
26
27 echo "Building $1"
28 ESCAPED_PACKAGE=$(python -c "import urllib; print urllib.quote('''$1''')")
29 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
30 wget $DEVKIT_URL/build --post-data="pkg=${ESCAPED_PACKAGE}&board=${ESCAPED_BOARD }"
31
32 echo "Emerging $1"
33
34 export PORTAGE_BINHOST="${DEVKIT_URL}/static/pkgroot/${BOARD_NAME}/packages"
35 export PORTAGE_TMPDIR=/tmp
36 export ACCEPT_KEYWORDS=x86
37
38 emerge --getbinpkg --usepkgonly $1
OLDNEW
« 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