]> sipb.mit.edu Git - ikiwiki.git/blob - simple.setup
avoid clobbering example diffurl
[ikiwiki.git] / simple.setup
1 #!/usr/bin/perl
2 # Simple ikiwiki setup.
3
4 # This setup file causes ikiwiki to create a wiki, check it into revision
5 # control, generate a setup file for the new wiki, and set everything up.
6 #
7 # Just run: ikiwiki -setup /etc/ikiwiki/simple.setup
8 #
9 # By default, it asks two questions, and confines itself to the user's home
10 # directory. You can edit it to change what it asks questions about, or to
11 # modify the values to use site-specific settings.
12
13 require IkiWiki::Setup::Automator;
14
15 our $wikiname=IkiWiki::Setup::Automator::ask(
16         "What will the wiki be named?", "wiki");
17 our $rcs=IkiWiki::Setup::Automator::ask(
18         "What revision control system to use?", "git");
19
20 IkiWiki::Setup::Automator::import(
21         wikiname => $wikiname,
22         rcs => $rcs,
23         srcdir => "$ENV{HOME}/$wikiname",
24         destdir => "$ENV{HOME}/public_html/$wikiname",
25         repository => "$ENV{HOME}/$wikiname.$rcs",
26         setupfile => "$ENV{HOME}/$wikiname.setup",
27 );