]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki.setup
add rebuild after calling setup, better format for setup files
[ikiwiki.git] / ikiwiki.setup
index 44c4f3106467b6c497e2b6326838cd1033196608..5a902a23cd1c6f0757b3c47d342230c797aebeee 100644 (file)
@@ -5,7 +5,8 @@
 #
 # Remember to re-run ikiwiki --setup any time you edit this file.
 
-my %common=(
+%config=(%config,
+       
        wikiname => "MyWiki",
 
        # Be sure to customise these..
@@ -14,7 +15,7 @@ my %common=(
        destdir => "/var/www/wiki",
        url => "http://myhost/wiki",
        cgiurl => "http://myhost/ikiwiki.cgi",
-       historyurl => "$webdir/cgi-bin/viewcvs?[[]]"
+       #historyurl => "http://svn.myhost/trunk/[[]]",
        
        # Whether to integrate with svn.
        svn => 1,
@@ -22,18 +23,21 @@ my %common=(
        
        # Can anonymous web users edit pages?
        #anonok => 1,
+
 );     
 
-gen_wrapper(
-       %common,
+gen_wrapper(%config,
+       
        cgi => 1,
-       wrapper => "$common{destdir}/ikiwiki.cgi",
+       wrapper => "$config{destdir}/ikiwiki.cgi",
        wrappermode => 06755,
+       
 );
-gen_wrapper(
-       %common,
+gen_wrapper(%config,
+       
        # Note that this will overwrite any exsting post-commit hoo
        # script, which may not be what you want.
-       wrapper => "$common{svnrepo}/hooks/post-commit",
+       wrapper => "$config{svnrepo}/hooks/post-commit",
        wrappermode => 04755,
-) if $common{$svn};
+
+) if $config{$svn};