File: check-copyright.sh

package info (click to toggle)
python-gfloat 0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: python: 1,448; sh: 37; makefile: 20
file content (12 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/bash
# Copyright (c) 2024 Graphcore Ltd. All rights reserved.

PATTERN='Copyright \(c\) 202[0-9] Graphcore Ltd\. +All rights reserved\.'

# We "grep ." so the exit code signals that the first grep generated output
if grep -L -E "$PATTERN" "$@" | grep .
then
  # There was output, signal unsuccessful
  exit 1
fi
# Normal exit, signalling success