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

Issue 5878005: Check in tofactory script. (Closed)

Created:
10 years ago by Randall Spangler
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Randall Spangler, Luigi Semenzato, Bill Richardson, gauravsh
Visibility:
Public.

Description

Check in tofactory script. Also refactor the other scripts to move more common functions (debug output, etc.) to common.sh. BUG=chrome-os-partner:1903 TEST=manual; ran on a Chrome notebook, verified the right things got copied. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=e37ff5d

Patch Set 1 #

Patch Set 2 : Remove trailing whitespace #

Total comments: 11

Patch Set 3 : Fix issues from code review. #

Patch Set 4 : Re-upload after repo sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -89 lines) Patch
M scripts/image_signing/common.sh View 1 2 3 5 chunks +94 lines, -53 lines 0 comments Download
M scripts/image_signing/make_dev_firmware.sh View 2 chunks +0 lines, -18 lines 0 comments Download
M scripts/image_signing/make_dev_ssd.sh View 1 2 3 2 chunks +0 lines, -18 lines 0 comments Download
A scripts/image_signing/tofactory.sh View 1 2 1 chunk +185 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Randall Spangler
10 years ago (2010-12-16 23:12:45 UTC) #1
Bill Richardson
A couple questions. http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common.sh File scripts/image_signing/common.sh (right): http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common.sh#newcode87 scripts/image_signing/common.sh:87: for i in "$(cat $TEMP_FILE_LIST)"; do ...
10 years ago (2010-12-17 01:10:53 UTC) #2
gauravsh
http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common.sh File scripts/image_signing/common.sh (right): http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common.sh#newcode55 scripts/image_signing/common.sh:55: [ "$FLAGS_debug" = $FLAGS_TRUE ] This and the debug_msg ...
10 years ago (2010-12-17 01:24:37 UTC) #3
Randall Spangler
http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common.sh File scripts/image_signing/common.sh (right): http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common.sh#newcode55 scripts/image_signing/common.sh:55: [ "$FLAGS_debug" = $FLAGS_TRUE ] On 2010/12/17 01:24:37, gauravsh ...
10 years ago (2010-12-21 22:52:35 UTC) #4
Bill Richardson
LGTM
10 years ago (2010-12-22 17:48:10 UTC) #5
gauravsh
10 years ago (2010-12-22 23:04:02 UTC) #6
LGTM

http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common.sh
File scripts/image_signing/common.sh (right):

http://codereview.chromium.org/5878005/diff/3001/scripts/image_signing/common...
scripts/image_signing/common.sh:87: for i in "$(cat $TEMP_FILE_LIST)"; do
On 2010/12/21 22:52:35, Randall Spangler wrote:
> On 2010/12/17 01:24:37, gauravsh wrote:
> > On 2010/12/17 01:10:53, Bill Richardson wrote:
> > > No quotes here. "${cat file}" will return the contents of the file as a
> single
> > > long string. 
> > 
> > Please, if you make this change as Bill suggested, make sure you test that
> this
> > does not break sign_official_build.sh and other scripts. Bash quoting is
> > somewhat confusing - and I may have added the extra quotes because something
> > wasn't working as expected.
> 
> I did some experimentation; the quotes will indeed mess things up.
> 
> 
> rrs@a5:~/b/tmp$ for i in $(echo 1 2 3); do echo $i; done
> 1
> 2
> 3
> rrs@a5:~/b/tmp$ for i in "$(echo 1 2 3)"; do echo $i; done
> 1 2 3

ahh, ok. good to know. thanks! :)

Powered by Google App Engine
This is Rietveld 408576698