X-Git-Url: https://scripts.mit.edu/gitweb/www/ikiwiki.git/blobdiff_plain/4b36dee35a55b08d6d6f3bb3840220a4956f2540..67b513e8c46b0be038133122a37e7fae385f69fc:/ikiwiki.pl diff --git a/ikiwiki.pl b/ikiwiki.pl index fd9300fba..b9a0db7e4 100755 --- a/ikiwiki.pl +++ b/ikiwiki.pl @@ -23,8 +23,10 @@ sub getconfig () { #{{{ "setup|s=s" => \$config{setup}, "wikiname=s" => \$config{wikiname}, "verbose|v!" => \$config{verbose}, + "syslog!" => \$config{syslog}, "rebuild!" => \$config{rebuild}, "refresh!" => \$config{refresh}, + "render=s" => \$config{render}, "wrappers!" => \$config{wrappers}, "getctime" => \$config{getctime}, "wrappermode=i" => \$config{wrappermode}, @@ -44,6 +46,8 @@ sub getconfig () { #{{{ "svnpath" => \$config{svnpath}, "adminemail=s" => \$config{adminemail}, "timeformat=s" => \$config{timeformat}, + "sslcookie!" => \$config{sslcookie}, + "httpauth!" => \$config{httpauth}, "exclude=s@" => sub { $config{wiki_file_prune_regexp}=qr/$config{wiki_file_prune_regexp}|$_[1]/; }, @@ -74,7 +78,7 @@ sub getconfig () { #{{{ }, ) || usage(); - if (! $config{setup}) { + if (! $config{setup} && ! $config{render}) { loadplugins(); usage() unless @ARGV == 2; $config{srcdir} = possibly_foolish_untaint(shift @ARGV); @@ -112,6 +116,10 @@ sub main () { #{{{ require IkiWiki::Wrapper; gen_wrapper(); } + elsif ($config{render}) { + require IkiWiki::Render; + commandline_render(); + } else { lockwiki(); loadindex();