summaryrefslogtreecommitdiff
path: root/IkiWiki/Setup.pm
blob: 63659ce2e03e7147be14063bf13e24278ddab94f (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. package IkiWiki;
  5. sub setup () { # {{{
  6. my $setup=possibly_foolish_untaint($config{setup});
  7. delete $config{setup};
  8. open (IN, $setup) || error("read $setup: $!\n");
  9. local $/=undef;
  10. my $code=<IN>;
  11. ($code)=$code=~/(.*)/s;
  12. close IN;
  13. eval $code;
  14. error($@) if $@;
  15. exit;
  16. } #}}}
  17. 1