From 4b2047cdfbc8abb8c466c113b7e40458d86a63fb Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 27 Mar 2017 14:27:31 -0700 Subject: [PATCH] Update the docs for the license script (flutter/engine#3525) --- engine/src/flutter/tools/licenses/README | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/tools/licenses/README b/engine/src/flutter/tools/licenses/README index 99e4a18008..7982d3e6e5 100644 --- a/engine/src/flutter/tools/licenses/README +++ b/engine/src/flutter/tools/licenses/README @@ -1,8 +1,17 @@ -To update the sky_engine LICENSE file, run the following in this directory: +To update the golden license files, run the following in this directory: ``` pub get gclient sync -dart lib/main.dart ../../.. > ../../sky/packages/sky_engine/LICENSE -dart --checked lib/main.dart ../../.. > ../../travis/licenses.golden +dart lib/main.dart --src ../../.. --out ../../../out/licenses --golden ../../travis/licenses_golden +``` + +Then copy any affected files from `../../../out/licenses` to `../../travis/licenses_golden` and add them to your change. + +The `sky/packages/sky_engine/LICENSE` file is included in product releases and should be updated any time the golden file changes in a way that involves changes to anything other than the FILE lines. To update this file, run: + +``` +pub get +gclient sync +dart lib/main.dart --release --src ../../.. --out ../../../out/licenses > ../../sky/packages/sky_engine/LICENSE ```