blob: 2d6e1d1cffe082315e3f64493c570e86c7d39649 (
plain)
- #!/usr/bin/perl
- use warnings;
- use strict;
- use IkiWiki;
- use open qw{:utf8 :std};
- package IkiWiki;
- sub setup () { # {{{
- my $setup=possibly_foolish_untaint($config{setup});
- delete $config{setup};
- #translators: The first parameter is a filename, and the second
- #translators: is a (probably not translated) error message.
- open (IN, $setup) || error(sprintf(gettext("cannot read %s: %s"), $setup, $!));
- my $code;
- {
- local $/=undef;
- $code=<IN>;
- }
- ($code)=$code=~/(.*)/s;
- close IN;
- eval $code;
- error($@) if $@;
- exit;
- } #}}}
- 1
|