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

Unified Diff: cros_download_latest_image

Issue 2805022: Tiny bit of clean up and follow new script naming convention. (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Fix double period. Created 10 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros_download_latest_image
diff --git a/download_latest_image.sh b/cros_download_latest_image
similarity index 85%
rename from download_latest_image.sh
rename to cros_download_latest_image
index 670a41aae25787311f2626f57edf0fe5eeea8d63..2b526cafeeb3abde5f2755f206a4d3b0306b6c24 100755
--- a/download_latest_image.sh
+++ b/cros_download_latest_image
@@ -1,11 +1,11 @@
#!/bin/bash
-# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Downloads the latest buildbot image and prints the path to it.
-# This only works internally at Google.
+# This script only works if you have access to buildbot images.
# Load common constants. This should be the first executable line.
# The path to common.sh should be relative to your script's location.
@@ -17,14 +17,13 @@ DEFINE_string board "$DEFAULT_BOARD" \
"The name of the board to check for images."
DEFINE_boolean incremental "${FLAGS_FALSE}" "Download incremental build"
-# Parse command line flags
+# 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
+ die "Error: --board required."
fi
IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
@@ -36,8 +35,7 @@ if [ $FLAGS_board = x86-generic ]; then
URL_PREFIX="http://codg163.jail.google.com/archive/x86-generic-rel"
fi
else
- echo "Unrecognized board: $FLAGS_board" >&2
- exit 1
+ die "Unrecognized board: $FLAGS_board" >&2
davidjames 2010/06/22 21:20:54 No need for >&2 here anymore, since you're using "
fi
LATEST_BUILD=$(curl -s $URL_PREFIX/LATEST)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698