summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-13 20:26:51 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-10-13 20:26:51 -0700
commitfcf87863d009a54d5852228a0aa6841a636f93ef (patch)
tree170e817d0659829e034bcc267d2fa06c96f1fd78 /usr
parentd55aa08e6e78a0176e8ce464b27794fccfb793ce (diff)
downloadpiny-code-fcf87863d009a54d5852228a0aa6841a636f93ef.tar.gz
piny-code-fcf87863d009a54d5852228a0aa6841a636f93ef.zip
First run at more advanced ikiwiki override handling.
Diffstat (limited to 'usr')
-rw-r--r--usr/src/libpiny/lib/Piny/Repo.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm
index 5dd965a..ca8ae07 100644
--- a/usr/src/libpiny/lib/Piny/Repo.pm
+++ b/usr/src/libpiny/lib/Piny/Repo.pm
@@ -508,6 +508,19 @@ sub _build_ikiwiki_setup {
}
];
+ if ( -e "/etc/ikiwiki/piny/" . $s->name . ".setup.pl" ) {
+ undef $@;
+ eval {
+ package TEMP;
+ use Piny;
+ $TEMP::repo = $s;
+ $TEMP::conf = $config;
+ no strict 'vars';
+ do "/etc/ikiwiki/piny/" . $s->name . ".setup.pl";
+ };
+ if ( not $@ ) { $config = $TEMP::conf; };
+ };
+
return writeSetup( $package, $config );
};