Sha256: 1aa8f6f792dd9eb15d5550ef665df1cc16365b22ea123c6496709b7e36a9a725

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

#!/usr/bin/env bash

# Usage: ./license_checker.sh source_code_pattern
# Example: ./license_checker.sh '*.rb'
# This will search all .rb files, ignoring anything not tracked in your git tree

git ls-files -z $1 | xargs -0 -n 10 -I{} sh -c 'RES=$(head -n 3 "{}" | grep "Copyright 20[0-9][0-9] DeepL SE (https://www.deepl.com)\|Copyright 20[0-9][0-9] Daniel Herzog"); if [ ! "${RES}" ] ; then echo "Lacking copyright header in" "{}" ; fi'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
deepl-rb-3.1.0 license_checker.sh
deepl-rb-3.0.2 license_checker.sh
deepl-rb-3.0.1 license_checker.sh
deepl-rb-3.0.0 license_checker.sh