Whamcloud - gitweb
Update copyright and license information.
[fs/lustre-release.git] / lustre / scripts / license-status
diff --git a/lustre/scripts/license-status b/lustre/scripts/license-status
new file mode 100755 (executable)
index 0000000..5407b91
--- /dev/null
@@ -0,0 +1,26 @@
+#! /bin/sh
+# license-status - Display the status of files in the current directory
+# Copyright (C) 2001  Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+#
+# Gordon Matzigkeit <gord@fig.org>, 2001-09-27
+
+for f in `find . -type f | sort`; do
+ case "$f" in
+ *~ | *.orig | *.gz | */config.* | *.o | \
+ */CVS/* | */.cvsignore | */.depfiles/* | \
+ */COPYING | */ChangeLog)
+  continue
+  ;;
+ esac
+
+ if head -20 "$f" | egrep -e 'GNU' > /dev/null; then
+  echo "gpled $f"
+ elif head -20 "$f" | egrep -e '\([Cc]\)' > /dev/null; then
+  echo "copyrighted $f"
+ else
+  echo "bare $f"
+ fi
+done | sort