| OLD | NEW |
| 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 # Script to modify a keyfob-based chromeos system image for testability. | 7 # Script to modify a keyfob-based chromeos system image for testability. |
| 8 | 8 |
| 9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
| 10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 sudo rm -rf "${stateful_root}/lib/icedtea6" || true | 137 sudo rm -rf "${stateful_root}/lib/icedtea6" || true |
| 138 | 138 |
| 139 sudo rsync --delete --delete-excluded -auv \ | 139 sudo rsync --delete --delete-excluded -auv \ |
| 140 --exclude=deps/realtimecomm_playground \ | 140 --exclude=deps/realtimecomm_playground \ |
| 141 --exclude=tests/ltp \ | 141 --exclude=tests/ltp \ |
| 142 --exclude=site_tests/graphics_O3DSelenium \ | 142 --exclude=site_tests/graphics_O3DSelenium \ |
| 143 --exclude=site_tests/realtimecomm_GTalk\* \ | 143 --exclude=site_tests/realtimecomm_GTalk\* \ |
| 144 --exclude=site_tests/platform_StackProtector \ | 144 --exclude=site_tests/platform_StackProtector \ |
| 145 --exclude=deps/chrome_test \ | 145 --exclude=deps/chrome_test \ |
| 146 --exclude=site_tests/desktopui_BrowserTest \ | 146 --exclude=site_tests/desktopui_BrowserTest \ |
| 147 --exclude=site_tests/desktopui_PageCyclerTests \ |
| 147 --exclude=site_tests/desktopui_UITest \ | 148 --exclude=site_tests/desktopui_UITest \ |
| 148 --exclude=.svn \ | 149 --exclude=.svn \ |
| 149 ${AUTOTEST_SRC}/client/* "${stateful_root}/${autotest_client}" | 150 ${AUTOTEST_SRC}/client/* "${stateful_root}/${autotest_client}" |
| 150 | 151 |
| 151 sudo chmod 755 "${stateful_root}/${autotest_client}" | 152 sudo chmod 755 "${stateful_root}/${autotest_client}" |
| 152 sudo chown -R 1000:1000 "${stateful_root}/${autotest_client}" | 153 sudo chown -R 1000:1000 "${stateful_root}/${autotest_client}" |
| 153 } | 154 } |
| 154 | 155 |
| 155 # main process begins here. | 156 # main process begins here. |
| 156 | 157 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 cleanup | 229 cleanup |
| 229 | 230 |
| 230 # Now make it bootable with the flags from build_image | 231 # Now make it bootable with the flags from build_image |
| 231 ${SCRIPTS_DIR}/bin/cros_make_image_bootable $(dirname "${FLAGS_image}") \ | 232 ${SCRIPTS_DIR}/bin/cros_make_image_bootable $(dirname "${FLAGS_image}") \ |
| 232 $(basename "${FLAGS_image}") | 233 $(basename "${FLAGS_image}") |
| 233 | 234 |
| 234 print_time_elapsed | 235 print_time_elapsed |
| 235 | 236 |
| 236 trap - EXIT | 237 trap - EXIT |
| 237 | 238 |
| OLD | NEW |