File: FindMissingCopyrightStatementsInITK.sh

package info (click to toggle)
insighttoolkit4 4.13.3withdata-dfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 489,260 kB
  • sloc: cpp: 557,342; ansic: 146,850; fortran: 34,788; python: 16,572; sh: 2,187; lisp: 2,070; tcl: 993; java: 362; perl: 200; makefile: 129; csh: 81; pascal: 69; xml: 19; ruby: 10
file content (16 lines) | stat: -rwxr-xr-x 511 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
## This script is intended to find files that are missing the proper ITK license.

MODULES_DIR=$(dirname $(dirname $(dirname $0)))/Modules

for i in $(find ${MODULES_DIR} -type f -name "*[.hxx|.h|.cxx]" ); do
  grep "http://www.apache.org/licenses/LICENSE-2.0.txt" $i > /dev/null;
  if [ $? -ne 0 ]; then
    echo "$i" ;
  fi;
done|fgrep -v ThirdParty

##
## for i in $(ls -d $(pwd)/Modules/* |fgrep -v ThirdParty) ; do
##  python Utilities/Maintenance/UpdateCopyrightStatementsInITK.py $i;
## done