]> git.sur5r.net Git - openldap/commitdiff
Script I use to update copyrights once a year
authorKurt Zeilenga <kurt@openldap.org>
Mon, 3 Mar 2003 18:11:40 +0000 (18:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 3 Mar 2003 18:11:40 +0000 (18:11 +0000)
build/crupdate [new file with mode: 0755]

diff --git a/build/crupdate b/build/crupdate
new file mode 100755 (executable)
index 0000000..f35a454
--- /dev/null
@@ -0,0 +1,13 @@
+#! /bin/sh
+# $OpenLDAP$
+## Copyright 1998-2003 The OpenLDAP Foundation
+## COPYING RESTRICTIONS APPLY.  See COPYRIGHT File in top level directory
+## of this package for details.
+#
+# Update copyright statements
+#
+
+set -e                 # exit immediately if any errors occur
+
+find . -type=f -not -name 'LICENSE*' -exec perl -pi -e 's/Copyright ([0-9]{4})([,\-][0-9]{2,4})*,? The OpenLDAP Foundation/Copyright $1-2003 The OpenLDAP Foundation/g;' {} \;
+