projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3256522
)
use prune to delete rendered files
author
Joey Hess
<joey@kodama.kitenet.net>
Tue, 15 Jul 2008 02:45:12 +0000
(22:45 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Tue, 15 Jul 2008 02:45:12 +0000
(22:45 -0400)
This handles deleting empty directories too.
IkiWiki/Plugin/aggregate.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/aggregate.pm
b/IkiWiki/Plugin/aggregate.pm
index f648a3f99f053dd99aa0fb255f5994c20358a327..301fe40f6dcb96ba15cc396ee823ea5509ac7378 100644
(file)
--- a/
IkiWiki/Plugin/aggregate.pm
+++ b/
IkiWiki/Plugin/aggregate.pm
@@
-157,8
+157,9
@@
sub migrate_to_internal { #{{{
debug("$oldname not found");
}
if (-e $oldoutput) {
+ use IkiWiki::Render;
debug("removing output file $oldoutput");
-
unlink
($oldoutput) || error ("$!");
+
IkiWIki::prune
($oldoutput) || error ("$!");
}
}