Author: johannes
Date: 2007-01-08 06:59:49 -0600 (Mon, 08 Jan 2007)
New Revision: 9220

Added:
   trunk/gnue-common/utils/update-copyright.sh
Log:
Added shell script to update copyright headers


Added: trunk/gnue-common/utils/update-copyright.sh
===================================================================
--- trunk/gnue-common/utils/update-copyright.sh 2007-01-06 16:33:07 UTC (rev 
9219)
+++ trunk/gnue-common/utils/update-copyright.sh 2007-01-08 12:59:49 UTC (rev 
9220)
@@ -0,0 +1,12 @@
+#!/bin/sh
+# Update the copyright statement in the requested file
+#
+# Usage: $0 file-to-update
+
+NEWYEAR=`date +'%Y'`
+
+for fname in $*
+do
+  echo "Updating $fname ..."
+  sed -i -e "s/Copyright \([0123456789]\{4\}\)-[0123456789]\{4\} Free Software 
Foundation/Copyright \1-${NEWYEAR} Free Software Foundation/g" $fname
+done


Property changes on: trunk/gnue-common/utils/update-copyright.sh
___________________________________________________________________
Name: svn:executable
   + *



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to