[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debian JP master SVN www commits (rev.951)



=======================================================
Repository: /org/svn.debian.or.jp/repos
  Revision: 951
  Commiter: kmuto
      Date: 2009-10-29 10:36:06 +0900 (木, 29 10月 2009)
=======================================================
Log:

handling mkdir

=======================================================
Changed:

U   webwml-sync/trunk/webwml-patch-commit

Modified: webwml-sync/trunk/webwml-patch-commit
===================================================================
--- webwml-sync/trunk/webwml-patch-commit	2009-10-24 04:42:53 UTC (rev 950)
+++ webwml-sync/trunk/webwml-patch-commit	2009-10-29 01:36:06 UTC (rev 951)
@@ -61,6 +61,13 @@
           rmfiles=$( cd $gitdir && git whatchanged -1 --pretty=format:"" $sha1 | grep "$targetlang/" | awk '{if ($5 == "D") print $6}' | xargs )
 
           if [ "$addfiles" ]; then
+            # mkdir
+            adddirs=$(echo $addfiles|ruby -e 'D=[];ARGF.each{|l|l.split(/ /).each{|f|D.push(File.dirname(f)) unless File.exists?(File.dirname(f))}};puts D.sort.uniq.join(" ")')
+            if [ "$adddirs"]; then
+              eval mkdir $adddirs
+              eval cvs add $adddirs
+            fi
+
             eval cvs add $addfiles
           fi
           if [ "$rmfiles" ]; then