Change log:95336cb92b..191d55580eFull diff:95336cb92b..191d55580eRoll chromium third_party 4e16929f46..3a8f2a9e1e Change log:4e16929f46..3a8f2a9e1eChanged dependencies: * src/tools:c44a3f5eca..f524a53b81DEPS diff:95336cb92b..191d55580e/DEPS No update to Clang. TBR=titovartem@google.com, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal Change-Id: Ic9c4a62b050383646e9fcf5cc07a5653c14ac06e Reviewed-on: https://webrtc-review.googlesource.com/76120 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23205}
69 lines
1.6 KiB
Bash
Executable File
69 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Upload the generated output to Google storage.
|
|
|
|
set -e
|
|
|
|
if [ ! -d "$1" ]; then
|
|
echo "update.sh <output directory from build-all.sh>"
|
|
exit 1
|
|
fi
|
|
|
|
if echo "$PWD" | grep -qE "/src/third_party/binutils$"; then
|
|
echo -n
|
|
else
|
|
echo "update.sh should be run in src/third_party/binutils"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -f ~/.boto ]; then
|
|
echo "You need to run 'gsutil config' to set up authentication before running this script."
|
|
exit 1
|
|
fi
|
|
|
|
for DIR in $1/*; do
|
|
# Skip if not directory
|
|
if [ ! -d "$DIR" ]; then
|
|
continue
|
|
fi
|
|
|
|
case "$DIR" in
|
|
*/i686-pc-linux-gnu)
|
|
export ARCH="Linux_ia32"
|
|
;;
|
|
|
|
*/x86_64-pc-linux-gnu)
|
|
export ARCH="Linux_x64"
|
|
;;
|
|
|
|
*)
|
|
echo "Unknown architecture directory $DIR"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
if [ ! -d "$ARCH" ]; then
|
|
mkdir -p "$ARCH"
|
|
fi
|
|
|
|
BINUTILS_TAR_BZ2="$ARCH/binutils.tar.bz2"
|
|
FULL_BINUTILS_TAR_BZ2="$PWD/$BINUTILS_TAR_BZ2"
|
|
if [ -f "${BINUTILS_TAR_BZ2}.sha1" ]; then
|
|
rm "${BINUTILS_TAR_BZ2}.sha1"
|
|
fi
|
|
(cd "$DIR"; tar jcf "$FULL_BINUTILS_TAR_BZ2" .)
|
|
|
|
upload_to_google_storage.py --bucket chromium-binutils "$BINUTILS_TAR_BZ2"
|
|
git add -f "${BINUTILS_TAR_BZ2}.sha1"
|
|
done
|
|
|
|
echo "Please commit the new .sha1 to the Chromium repository"
|
|
echo "# git commit"
|
|
echo ""
|
|
echo "Make sure goma is updated with the new binutils *before* landing."
|
|
echo " Notify {ukai,yyanagisawa,shinyak}@chromium.org with the .sha1 files"
|
|
echo " and await confirmation."
|