diff --git a/tools/licenses/README b/tools/licenses/README index 99e4a18008751f502ca619c61b016853374b958e..7982d3e6e53eb6fd1caf48cd443ad20d10e73b0e 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 ```