flatcar-scripts/mod_for_factory_scripts
Hung-Te Lin 062947926e cros_utils: refine factory and imaging related scripts
Major changes are:
 - prefix functions in cros_image_common with 'image' to avoid naming conflicts
 - use awk to replace grep+sed+cut
 - use case to handle board name list
 - factory_setup.sh should return error if applying patch failed
 - refine for shell script coding style guide:
   * replace `` with $()
   * quote variables
   * replace "! -z" by "-n"
   * no space between redirection symbol (>) and target name (eg, >>filename)
   * 1> should be simply >
   * no trailing \ for && and ||

BUG=chrome-os-partner:1583
TEST=manually verified:
 ./image_to_usb.sh --factory # calls mod_image_for_test --factory, and works fine
 ./make_factory_package.sh --factory PATH_TO_IMAGE --release PATH_TO_IMAGE ...
  # factory payloads were created successfully

Change-Id: I6bb10bdfb12cbdb14e9816b3ad72dfe4b7b0472f

Review URL: http://codereview.chromium.org/5168001
2010-11-18 14:47:38 +08:00
..
200patchInitScript Clean var formatting in mod_for_factory 2010-11-17 22:10:16 -08:00
300modifyDescription Clean var formatting in mod_for_factory 2010-11-17 22:10:16 -08:00
400configAutotest cros_utils: refine factory and imaging related scripts 2010-11-18 14:47:38 +08:00
500populateQualDbs Clean var formatting in mod_for_factory 2010-11-17 22:10:16 -08:00
600customizeRelease Clean var formatting in mod_for_factory 2010-11-17 22:10:16 -08:00
factory_setup.sh cros_utils: refine factory and imaging related scripts 2010-11-18 14:47:38 +08:00