]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - IkiWiki/Setup.pm
* Move tidy back to sanitize hook, found out how to only show body.
[git.ikiwiki.info.git] / IkiWiki / Setup.pm
1 #!/usr/bin/perl
3 use warnings;
4 use strict;
5 use IkiWiki;
7 package IkiWiki;
9 sub setup () { # {{{
10         my $setup=possibly_foolish_untaint($config{setup});
11         delete $config{setup};
12         open (IN, $setup) || error("read $setup: $!\n");
13         my $code;
14         {
15                 local $/=undef;
16                 $code=<IN>;
17         }
18         ($code)=$code=~/(.*)/s;
19         close IN;
21         eval $code;
22         error($@) if $@;
24         exit;
25 } #}}}
27 1