return
omega_cgi => {
type => "string",
+ example => "/usr/lib/cgi-bin/omega/omega",
description => "path to the omega cgi program",
safe => 0, # external program
rebuild => 0,
}
}
- if (! exists $config{omega_cgi}) {
+ if (! defined $config{omega_cgi}) {
$config{omega_cgi}="/usr/lib/cgi-bin/omega/omega";
}
} #}}}
typographyattributes => {
type => "string",
example => "3",
- example => "tag",
description => "Text::Typography attributes value",
safe => 1,
rebuild => 1,
if (! defined $config{diffurl}) {
$config{diffurl}="";
}
- if (exists $config{bzr_wrapper}) {
+ if (length $config{bzr_wrapper}) {
push @{$config{wrappers}}, {
wrapper => $config{bzr_wrapper},
wrappermode => (defined $config{bzr_wrappermode} ? $config{bzr_wrappermode} : "06755"),
if (! defined $config{gitmaster_branch}) {
$config{gitmaster_branch}="master";
}
- if (exists $config{git_wrapper}) {
+ if (length $config{git_wrapper}) {
push @{$config{wrappers}}, {
wrapper => $config{git_wrapper},
wrappermode => (defined $config{git_wrappermode} ? $config{git_wrappermode} : "06755"),
if (! defined $config{diffurl}) {
$config{diffurl}="";
}
- if (exists $config{mercurial_wrapper}) {
+ if (length $config{mercurial_wrapper}) {
push @{$config{wrappers}}, {
wrapper => $config{mercurial_wrapper},
wrappermode => (defined $config{mercurial_wrappermode} ? $config{mercurial_wrappermode} : "06755"),
error("Monotone version too old, is $version but required 0.38");
}
- if (exists $config{mtn_wrapper}) {
+ if (length $config{mtn_wrapper}) {
push @{$config{wrappers}}, {
wrapper => $config{mtn_wrapper},
wrappermode => (defined $config{mtn_wrappermode} ? $config{mtn_wrappermode} : "06755"),
$config{svnpath}=~s/\/$//;
$config{svnpath}=~s/^\///;
}
- if (exists $config{svn_wrapper}) {
+ if (length $config{svn_wrapper}) {
push @{$config{wrappers}}, {
wrapper => $config{svn_wrapper},
wrappermode => (defined $config{svn_wrappermode} ? $config{svn_wrappermode} : "04755"),
if (! defined $config{diffurl}) {
$config{diffurl}="";
}
- if (exists $config{tla_wrapper}) {
+ if (length $config{tla_wrapper}) {
push @{$config{wrappers}}, {
wrapper => $config{tla_wrapper},
wrappermode => (defined $config{tla_wrappermode} ? $config{tla_wrappermode} : "06755"),
}
}
- if (exists $config{cgi_wrapper}) {
+ if (length $config{cgi_wrapper}) {
push @{$config{wrappers}}, {
cgi => 1,
wrapper => $config{cgi_wrapper},
push @ret, dumpline($key, $setup->{$key}, $info{type}, "");
delete $setup->{$key};
}
- elsif (exists $info{default} && defined $info{default}) {
- push @ret, dumpline($key, $info{default}, $info{type}, "#");
- }
elsif (exists $info{example}) {
push @ret, dumpline($key, $info{example}, $info{type}, "#");
}