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

Unified Diff: make_factory_package.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/cros_image_common.sh ('k') | mk_memento_images.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: make_factory_package.sh
diff --git a/make_factory_package.sh b/make_factory_package.sh
index a251980a1201d9e6b03fdd37721a38b1f8b7e42e..ba62fb5d671959a69d7bf4357785a375260d0542 100755
--- a/make_factory_package.sh
+++ b/make_factory_package.sh
@@ -19,7 +19,13 @@
. "$(dirname "$0")/chromeos-common.sh"
# Load functions designed for image processing
-. "$(dirname "$0")/image_common.sh"
+LIB_CROS_IMAGE_COMMON="$(dirname "$0")/lib/cros_image_common.sh"
+[ -f "$LIB_CROS_IMAGE_COMMON" ] ||
sosa 2010/11/12 19:42:02 Why do you do these extra checks here for include
Hung-Te 2010/11/12 19:56:25 There's some plan to create a mini factory bundle
+ LIB_CROS_IMAGE_COMMON="$(dirname "$0")/cros_image_common.sh"
+if ! . "$LIB_CROS_IMAGE_COMMON"; then
+ echo "ERROR: Cannot load required library: $LIB_CROS_IMAGE_COMMON. Abort."
+ exit 1
+fi
get_default_board
« no previous file with comments | « lib/cros_image_common.sh ('k') | mk_memento_images.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698