svn commit: r17805 - trunk/tools/bin/add-epl-header.sh

Linus Tolke <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2010-01-11 14:04:17-0800
New Revision: 17805

Modified:
   trunk/tools/bin/add-epl-header.sh

Log:
Another set of small improvements to the script.

Modified: trunk/tools/bin/add-epl-header.sh
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tools/bin/add-epl-header.sh?view=diff&pathrev=17805&r1=17804&r2=17805
==============================================================================
--- trunk/tools/bin/add-epl-header.sh	(original)
+++ trunk/tools/bin/add-epl-header.sh	2010-01-11 14:04:17-0800
@@ -4,10 +4,15 @@
 for dir in `find . -type d -print | grep -v /.svn`
 do
   (
-    echo Processing $dir:
+    echo Processing $dir...
     cd $dir
     for file in *.java
     do
+      if [ "$file" = "*.java" ]
+      then
+        continue;
+      fi
+
       if head -1 $file | grep '^//'
       then
         author=`svn info -r {2010-01-01} $file | egrep '^Last Changed Author:' | sed 's/^.*: //'`
@@ -37,7 +42,6 @@
         if [ "X`wc -l < svn-diff.tmp`" != X24 ]
         then
           cat svn-diff.tmp
-          rm svn-diff.tmp
 	  echo -n "Replace? N/Y/Q "
 	  read ans
 	  case "$ans" in
@@ -45,6 +49,7 @@
 	    ;;
 	  Q)
 	    svn revert $file
+            rm svn-diff.tmp
 	    exit 0;
 	    ;;
 	  *)
@@ -55,6 +60,7 @@
       fi
     done
     svn ci --depth files -m'Added EPL License header.'
+    rm -f svn-diff.tmp
     echo Processing $dir...done.
   )
 done

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2436462

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.