[roll pigweed] pw_presubmit: Replace copyright check logic with a regular expression

Simplify the copyright check to work as follows:

- Skip lines matching certain prefixes.
- Read the 13 lines that should be the copyright notice.
- Check that the copyright notice matches a regular expression.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/105621

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: b417ba7d6a21664..1980a4e08529cb3
Roller-URL: https://ci.chromium.org/b/8806270822166397441
Cq-Cl-Tag: roller-builder:pigweed-zephyr-roller
Cq-Cl-Tag: roller-bid:8806270822166397441
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ia13127c8015966562bfac51fba71261b85cd39ed
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/105646
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: 02e9a5801ea47789c189da739a9629c1b7d9f0bf
  1. .gitmodules
  2. test.sh