diff --git a/kernel_fetcher.sh b/kernel_fetcher.sh deleted file mode 100755 index 6a9f26a1b5..0000000000 --- a/kernel_fetcher.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2009 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. - -# --- BEGIN COMMON.SH BOILERPLATE --- -# Load common CrOS utilities. Inside the chroot this file is installed in -# /usr/lib/crosutils. Outside the chroot we find it relative to the script's -# location. -find_common_sh() { - local common_paths=(/usr/lib/crosutils $(dirname "$(readlink -f "$0")")) - local path - - SCRIPT_ROOT= - for path in "${common_paths[@]}"; do - if [ -r "${path}/common.sh" ]; then - SCRIPT_ROOT=${path} - break - fi - done -} - -find_common_sh -. "${SCRIPT_ROOT}/common.sh" || (echo "Unable to load common.sh" && exit 1) -# --- END COMMON.SH BOILERPLATE --- - -IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images" - -# Flags -DEFINE_string from "" "Directory containing rootfs.image and mbr.image" -DEFINE_string to "" "Destination file for USB image." -DEFINE_integer offset 0 "Offset to write the kernel to in the destination." - -# Parse command line -FLAGS "$@" || exit 1 -eval set -- "${FLAGS_ARGV}" - -# Die on any errors. -set -e - -if [ -z "${FLAGS_from}" -o -z "${FLAGS_to}" -o -z "${FLAGS_offset}" ]; then - echo "You must define all of from, to and offset." - exit 1 -fi - -# Convert args to paths. Need eval to un-quote the string so that shell -# chars like ~ are processed; just doing FOO=`readlink -f $FOO` won't work. -FLAGS_from=`eval readlink -f ${FLAGS_from}` -FLAGS_to=`eval readlink -f ${FLAGS_to}` - -function do_cleanup { - sync - sudo umount -l /tmp/kernel_fetch.$$ - rmdir /tmp/kernel_fetch.$$ -} - -trap do_cleanup EXIT - -# -# Set up loop device. This time it is used to fetch the built kernel from the -# root image. This kernel is then written to the fourth partition. -# -echo "Fetching kernel from root image..." -mkdir /tmp/kernel_fetch.$$ -sudo mount -o ro,loop "${FLAGS_from}/rootfs.image" /tmp/kernel_fetch.$$ - -echo "Writing kernel to ${FLAGS_to} at ${FLAGS_offset}..." -sudo "${SCRIPTS_DIR}"/file_copy.py \ - if=/tmp/kernel_fetch.$$/boot/vmlinux.uimg \ - of="${FLAGS_to}" \ - seek_bytes="${FLAGS_offset}" -echo "Done." - -do_cleanup - -trap - EXIT diff --git a/tracker.sh b/tracker.sh deleted file mode 100755 index 4ce6e3431f..0000000000 --- a/tracker.sh +++ /dev/null @@ -1,143 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2009 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. - -# Script to report issues from the command line - -# --- BEGIN COMMON.SH BOILERPLATE --- -# Load common CrOS utilities. Inside the chroot this file is installed in -# /usr/lib/crosutils. Outside the chroot we find it relative to the script's -# location. -find_common_sh() { - local common_paths=(/usr/lib/crosutils $(dirname "$(readlink -f "$0")")) - local path - - SCRIPT_ROOT= - for path in "${common_paths[@]}"; do - if [ -r "${path}/common.sh" ]; then - SCRIPT_ROOT=${path} - break - fi - done -} - -find_common_sh -. "${SCRIPT_ROOT}/common.sh" || (echo "Unable to load common.sh" && exit 1) -# --- END COMMON.SH BOILERPLATE --- - -# Script must be run outside the chroot -assert_outside_chroot - -# Define command line flags -# See http://code.google.com/p/shflags/wiki/Documentation10x -DEFINE_string author "$USER" "author" "a" -DEFINE_string description "" "description" "d" -DEFINE_string owner "$USER@chromium.org" "owner" "o" -DEFINE_string password "" "password" "p" -DEFINE_integer priority "2" "priority" "r" -DEFINE_string status "Untriaged" "status (see below)" "s" -DEFINE_string title "" "title" "t" -DEFINE_string type "Bug" "type" "y" -DEFINE_string username "$USER@chromium.org" "username" "u" -DEFINE_boolean verbose false "verbose" "v" - -FLAGS_HELP=" - Description accepts html formatting characters. - - Open Statuses: - Unconfirmed = New, has not been verified or reproduced - Untriaged = Confirmed, not reviewed for priority and assignment - Available = Triaged, but no owner assigned - Assigned = In someone's queue, but not started - Started = Work in progress - Upstream = Issue has been reported to another project - - Closed Statuses: - Fixed = Work completed, needs verification - Verified = Test or reporter verified that the fix works - Duplicate = Same root cause as another issue - WontFix = Cannot reproduce, works as intended, or obsolete - FixUnreleased = Security bug fixed on all branches, not released - Invalid = Not a valid issue report - - Types: - Bug = Software not working correctly - Feature = Request for new or improved feature - Task = Project or work that doesn't change code - Cleanup = Code maintenance unrelated to bugs - - Priority: - 0 = Critical. Resolve now. Blocks other work or users need immediate update. - 1 = High. Required for the specified milestone release. - 2 = Normal. Desired for, but does not block, the specified milestone release. - 3 = Low. Nice to have, but not important enough to start work on yet. -" - -# parse the command-line -FLAGS "$@" || exit 1 -eval set -- "${FLAGS_ARGV}" - -# Now we can die on errors -set -e - -# Function to escape XML -escape_xml() { - RESULT_ESCAPE_XML="${1}" - # Quote any ampersands first, since they appear in the substitutions - RESULT_ESCAPE_XML="${RESULT_ESCAPE_XML//&/&}" - RESULT_ESCAPE_XML="${RESULT_ESCAPE_XML///>}" - RESULT_ESCAPE_XML="${RESULT_ESCAPE_XML//\"/\"}" - RESULT_ESCAPE_XML="${RESULT_ESCAPE_XML//\'/\'}" -} - -if [ ${FLAGS_verbose} -eq ${FLAGS_TRUE} ]; then - set -v -else - set +v -fi - -# Make sure we have a password -if [ -z "${FLAGS_password}" ]; then - echo -n "password: " - stty -echo - read FLAGS_password - stty echo -fi - -escape_xml "${FLAGS_description}" -FLAGS_description="${RESULT_ESCAPE_XML}" -escape_xml "${FLAGS_title}" -FLAGS_title="${RESULT_ESCAPE_XML}" - -BODY=" - - - $FLAGS_title - $FLAGS_description - $FLAGS_author - $FLAGS_status - - $FLAGS_owner - - Type-$FLAGS_type - Pri-$FLAGS_priority - -" - -AUTH=`curl --silent -d "Email=$FLAGS_username&Passwd=$FLAGS_password&service=code&source=google-cltracker-1" \ - https://www.google.com/accounts/ClientLogin | sed -n -e '/^Auth=/{!d;s/Auth=//;p;}'` - -if [ -z "${AUTH}" ]; then - echo "Authentication Failure" >&2 - exit 1 -fi - -echo $BODY | curl --silent -X POST -H "Authorization: GoogleLogin auth=$AUTH" \ - -H "content-type: application/atom+xml" \ - -H "content-length: ${#BODY}" \ - -T - http://code.google.com/feeds/issues/p/chromium-os/issues/full -