Name

ConfigDir — specify default "include" directory for "<file" notation

SYNOPSIS

directory_name

DESCRIPTION

Specify the default "include" directory for files that are specified using the <filename notation and have a relative pathname. See the section called “EXAMPLES” for clarification.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive,
Catalog directive

EXAMPLES

Example: Setting ConfigDir

ConfigDir variables

Example: Setting directive value from a file

In combination with the above example, the following would read the directive value from file variables/mailorderto (relative to the CATROOT, of course).

MailOrderTo <mailorderto

NOTES

See the configuration glossary entry for complete information on Interchange config file syntax.

Make sure you don't get confused by the existence of all DirConfig, ConfDir and ConfigDir.

AVAILABILITY

ConfigDir is available in Interchange versions:

4.6.0-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 394

['ConfigDir',      undef,           'etc/lib'],

Source: lib/Vend/Config.pm
Line 542

['ConfigDir',        'relative_dir',   'config'],

Source: lib/Vend/Config.pm
Line 3863 (context shows lines 3863-3884)

sub parse_relative_dir {
my($var, $value) = @_;

if ($Global::NoAbsolute) {
  # sanity check on filenames
  if (file_name_is_absolute($value)) {
    config_error('Absolute path %s not allowed in %s directive',
           $value, $var)
  }
  if ($value =~ m#^\.\./.*\.\.#) {
    config_error('Path %s outside of catalog directory not allowed in %s directive',
           $value, $var)
  }
}

$C->{Source}{$var} = $value;

$value = "$C->{VendRoot}/$value"
  unless file_name_is_absolute($value);
$value =~ s./+$..;
$value;
}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!