From 117137a51c84fc8d5ed6972ad7793ef110199c0e 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 (#3525) --- tools/licenses/README | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/licenses/README b/tools/licenses/README index 99e4a1800..7982d3e6e 100644 --- a/tools/licenses/README +++ b/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 ``` -- GitLab