diff options
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/lib/FML/Process/Utils.pm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm index c9939f99..7ec36e29 100644 --- a/fml/lib/FML/Process/Utils.pm +++ b/fml/lib/FML/Process/Utils.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Utils.pm,v 1.17 2002/03/30 11:08:36 fukachan Exp $ +# $FML: Utils.pm,v 1.18 2002/04/07 05:27:19 fukachan Exp $ # package FML::Process::Utils; @@ -285,6 +285,20 @@ sub ml_home_prefix } +# Descriptions: return $ml ML's home directory +# Arguments: OBJ($curproc) STR($ml) STR($domain) +# Side Effects: none +# Return Value: STR +sub ml_home_dir +{ + my ($curproc, $ml, $domain) = @_; + my $prefix = $curproc->ml_home_prefix($domain); + + use File::Spec; + return File::Spec->catfile($prefix, $ml); +} + + # Descriptions: return $ml_home_prefix defined in main.cf (/etc/fml/main.cf). # return $ml_home_prefix for $domain if $domain is specified. # return default one if $domain is not specified. |
