github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/scripts/README.md (about)

     1  # Scripts
     2  
     3  Helper scripts for kpt repository.
     4  
     5  - Generates `LICENSES.txt` file for kpt release, which includes the
     6    licenses of the transitive dependencies of kpt.
     7  - Generates `lib.zip`, which is a package of source files necessary
     8    to satisfy the Mozilla license.
     9  
    10  ## Generating LICENSES.txt and source code package
    11  
    12  From top-level kpt directory:
    13  
    14  ```shell
    15  ./scripts/create-licenses.sh
    16  ```
    17  
    18  This script will generate files `LICENSES.txt` and `lib.zip` in the
    19  top-level directory. These files will eventually be included in the kpt
    20  release tarball. This script will first run `go mod vendor` to
    21  generate the vendored dependencies. The script removes the contents
    22  of the vendor directory upon success.