X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e95d3bb4fd1ea131a78b09ca2710df642f74c003..62cd2e0a5d0127a13cc9af792191bcbceb36e387:/ikiwiki-transition?ds=inline diff --git a/ikiwiki-transition b/ikiwiki-transition index 6524297ee..3e2c89bf9 100755 --- a/ikiwiki-transition +++ b/ikiwiki-transition @@ -100,12 +100,12 @@ sub hashpassword { } sub aggregateinternal { - $config{srcdir} = shift; - $config{wikistatedir} = $config{srcdir}."/.ikiwiki"; - $config{htmlext} = (shift or "html"); - + require IkiWiki::Setup; require IkiWiki::Plugin::aggregate; + %config = (IkiWiki::defaultconfig(), IkiWiki::Setup::load(shift)); + IkiWiki::checkconfig(); + IkiWiki::Plugin::aggregate::migrate_to_internal(); print "... now add aggregateinternal => 1 to your .setup file\n"; @@ -117,7 +117,7 @@ sub usage { print STDERR " prefix_directives file\n"; print STDERR " indexdb srcdir\n"; print STDERR " hashpassword srcdir\n"; - print STDERR " aggregateinternal srcdir [htmlext]\n"; + print STDERR " aggregateinternal setupfile\n"; exit 1; }