Whamcloud - gitweb
LU-82 Remove useless clio locks
[fs/lustre-release.git] / lustre / scripts / license-status
1 #! /bin/sh
2 # license-status - Display the status of files in the current directory
3 # Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
4 #
5 # This code is issued under the GNU General Public License.
6 # See the file COPYING in this distribution
7 #
8 # Gordon Matzigkeit <gord@fig.org>, 2001-09-27
9
10 for f in `find . -type f | sort`; do
11  case "$f" in
12  *~ | *.orig | *.gz | */config.* | *.o | \
13  */CVS/* | */.cvsignore | */.depfiles/* | \
14  */COPYING | */ChangeLog)
15   continue
16   ;;
17  esac
18
19  if head -20 "$f" | egrep -e 'GNU' > /dev/null; then
20   echo "gpled $f"
21  elif head -20 "$f" | egrep -e '\([Cc]\)' > /dev/null; then
22   echo "copyrighted $f"
23  else
24   echo "bare $f"
25  fi
26 done | sort