blob: f0f8511186dd0e3467deeb4fdea84d07c65436ed [file] [log] [blame]
#!/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 produces a patch to the Flutter Framework from the local
# uncommitted changes in the current engine checkout.
# Usage: src/third_party/dart/tools/patches/flutter-flutter/
# (run inside the root of a flutter engine checkout)
set -e
DIR=$(dirname -- "$(which -- "$0")")
. $DIR/../
rm -f src/third_party/dart/tools/patches/flutter-flutter/*.patch
(cd flutter && git diff) > $patch
if [ ! -s $patch ]; then
rm $patch