blob: 9f210dec896e136c8f9536348fa07626fdda2c9d (
plain)
- #!/usr/bin/perl
- use warnings;
- use strict;
- use IkiWiki;
- package IkiWiki;
- sub setup () { # {{{
- my $setup=possibly_foolish_untaint($config{setup});
- delete $config{setup};
- open (IN, $setup) || error("read $setup: $!\n");
- my $code;
- {
- local $/=undef;
- $code=<IN>;
- }
- ($code)=$code=~/(.*)/s;
- close IN;
- eval $code;
- error($@) if $@;
- exit;
- } #}}}
- 1
|