diff options
| author | fukachan <fukachan> | 2002-04-15 10:29:44 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-04-15 10:29:44 +0000 |
| commit | ab41850a7a73d7c4e70425f1cb78ce3d2aeba1ae (patch) | |
| tree | 4118da71c6f43790764ebe9e2887ca2ef1e21d57 /fml | |
| parent | 8cd9e0cbf098c3319ed4ded3b972b7a11a9041cb (diff) | |
| download | fml8-ab41850a7a73d7c4e70425f1cb78ce3d2aeba1ae.tar.gz fml8-ab41850a7a73d7c4e70425f1cb78ce3d2aeba1ae.tar.bz2 fml8-ab41850a7a73d7c4e70425f1cb78ce3d2aeba1ae.zip | |
implement ml_home_dir()
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. |
