foo
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 11 Mar 2006 02:22:55 +0000 (02:22 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 11 Mar 2006 02:22:55 +0000 (02:22 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index 00e204b97f698dd46d6efb18ed8fe28cc9667ee1..d64a3417a5fca6827a1c6d7c4eb234dee18d1e23 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -350,10 +350,16 @@ sub rcs_commit ($) {
        }
 }
 
-sub rcs_ad ($) {
+sub rcs_add ($) {
        my $file=shift;
 
        if (-d "$srcdir/.svn") {
+               my $parent=dirname($file);
+               while (! -d "$srcdir/$parent/.svn") {
+                       $file=$parent;
+                       $parent=dirname($file);
+               }
+               
                if (system("svn", "add", "--quiet", $file) != 0) {
                        warn("svn add failed\n");
                }