| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | set -exuo pipefail |
| 4 | |
| 5 | # Licenses. |
| 6 | license="$(mktempscip-shell system . . mktemp.)" |
| 7 | catscip-shell system . . cat. > "${license}" <<EOF |
| 8 | Copyright {{.Year}} {{.Holder}}. All rights reserved. |
| 9 | Use of this source code is governed by a BSD-style |
| 10 | license that can be found in the LICENSE file. |
| 11 | EOF |
| 12 | findscip-shell system . . find. . -name '*.go' | xargsscip-shell system . . xargs. addlicense -c 'The Go Authors' -f "${license}" |
| 13 | rmscip-shell system . . rm. "${license}" |
| 14 | |
| 15 | # Go generate. |
| 16 | goscip-shell system . . go. generate -v -x |