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

Side by Side Diff: lib/cros_image_common.sh

Issue 4825004: crosutils: move image_common.sh to lib/cros_image_common.sh (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 years, 1 month 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 | « no previous file | make_factory_package.sh » ('j') | make_factory_package.sh » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 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 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script contains common utility function to deal with disk images, 7 # This script contains common utility function to deal with disk images,
8 # especially for being redistributed into platforms without complete Chromium OS 8 # especially for being redistributed into platforms without complete Chromium OS
9 # developing environment. 9 # developing environment.
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 local file="$1" 97 local file="$1"
98 local part_num="$2" 98 local part_num="$2"
99 local offset="$(part_offset "$file" "$part_num")" || 99 local offset="$(part_offset "$file" "$part_num")" ||
100 err_die "failed to dump partition #$part_num from: $file" 100 err_die "failed to dump partition #$part_num from: $file"
101 local size="$(part_size "$file" "$part_num")" || 101 local size="$(part_size "$file" "$part_num")" ||
102 err_die "failed to dump partition #$part_num from: $file" 102 err_die "failed to dump partition #$part_num from: $file"
103 103
104 dump_partial_file "$file" "$offset" "$size" 104 dump_partial_file "$file" "$offset" "$size"
105 } 105 }
106 106
OLDNEW
« no previous file with comments | « no previous file | make_factory_package.sh » ('j') | make_factory_package.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698