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

Unified Diff: src/scripts/get_latest_image.sh

Issue 633001: fixup autoupdate for new build system (Closed)
Patch Set: per review comments Created 10 years, 10 months 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 | « src/scripts/build_autotest.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/get_latest_image.sh
diff --git a/src/scripts/get_latest_image.sh b/src/scripts/get_latest_image.sh
index 52598fad09c012b81b07a484a1b5cda1b9b33ef4..edcc1697b58ee501a40a2b3f2b4c6ffbde75bfbe 100755
--- a/src/scripts/get_latest_image.sh
+++ b/src/scripts/get_latest_image.sh
@@ -10,7 +10,19 @@
# The path to common.sh should be relative to your script's location.
. "$(dirname "$0")/common.sh"
-IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images"
+DEFINE_string board "" "The name of the board to check for images."
+
+# Parse command line flags
+FLAGS "$@" || exit 1
+eval set -- "${FLAGS_ARGV}"
+
+# Check on the board that they are trying to set up.
+if [ -z "$FLAGS_board" ] ; then
+ echo "Error: --board required."
+ exit 1
+fi
+
+IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
# Default to the most recent image
DEFAULT_FROM="${IMAGES_DIR}/`ls -t $IMAGES_DIR | head -1`"
« no previous file with comments | « src/scripts/build_autotest.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698