Files
sdk/tools/patches/flutter-flutter/apply.sh
T
Alexander Markov 0e07987ccd [gardening] Attempt to repair red HHH bot, take 2
This is the 2nd attempt to repair HHH bot after
https://dart.googlesource.com/sdk/+/aa2ce7cfbfaca5439b86b6ee4ad503691b8ce0ac

Patch is renamed to the pinned Dart SDK hash, and flutter-flutter/apply.sh
script is changed to pick up patches using both engine and dart hashes.

Change-Id: I5cfbe65aeacb48eb76bcfbcb1eaa97795601c9fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104340
Reviewed-by: Todd Volkert <tvolkert@google.com>
2019-05-31 19:49:13 +00:00

32 lines
1015 B
Bash
Executable File

#!/usr/bin/env bash
#
# Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
#
# This script applies a patch, if available, to the Flutter Framework. Only a
# patch is applied for the particular engine.version the flutter framework is
# using.
#
# Usage: src/third_party/dart/tools/patches/flutter-flutter/apply.sh
# (run inside the root of a flutter checkout)
set -e
DIR=$(dirname -- "$(which -- "$0")")
. $DIR/../utils.sh
ensure_in_checkout_root
pinned_engine_version=$(get_pinned_flutter_engine_version)
patch=src/third_party/dart/tools/patches/flutter-flutter/${pinned_engine_version}.patch
if [ -e "$patch" ]; then
(cd flutter && git apply ../$patch)
fi
pinned_dart_sdk=$(get_pinned_dart_version)
patch=src/third_party/dart/tools/patches/flutter-flutter/${pinned_dart_sdk}.patch
if [ -e "$patch" ]; then
(cd flutter && git apply ../$patch)
fi