summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 19:28:15 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 19:28:15 -0400
commit8051316904d13de3e467f01ebaeacaa5d8efb1b6 (patch)
tree4d11c3557475acec4a5738f404a79e4aca62b0f1 /IkiWiki.pm
parentbb872ea1e820f842c0b826fe802f8aac797a7146 (diff)
add missing setup options, tweak others' display
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm34
1 files changed, 24 insertions, 10 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index a2b9a3e24..2f274f384 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -252,7 +252,29 @@ sub getsetup () { #{{{
safe => 0, # paranoia
rebuild => 0,
},
-
+ umask => {
+ type => "integer",
+ description => "",
+ example => "022",
+ description => "force ikiwiki to use a particular umask",
+ safe => 0, # paranoia
+ rebuild => 0,
+ },
+ libdir => {
+ type => "string",
+ default => "",
+ example => "$ENV{HOME}/.ikiwiki/",
+ description => "extra library and plugin directory",
+ safe => 0, # directory
+ rebuild => 0,
+ },
+ ENV => {
+ type => "string",
+ default => {},
+ description => "environment variables",
+ safe => 0, # paranoia
+ rebuild => 0,
+ },
exclude => {
type => "string",
default => undef,
@@ -342,14 +364,6 @@ sub getsetup () { #{{{
safe => 0,
rebuild => 0,
},
- libdir => {
- type => "internal",
- default => undef,
- example => "$ENV{HOME}/.ikiwiki/",
- description => "extra library and plugin directory",
- safe => 0,
- rebuild => 0,
- },
} #}}}
sub defaultconfig () { #{{{
@@ -408,7 +422,7 @@ sub checkconfig () { #{{{
require IkiWiki::Rcs::Stub;
}
- if (exists $config{umask}) {
+ if (defined $config{umask}) {
umask(possibly_foolish_untaint($config{umask}));
}