From 1814de0f552923cd6cd6aef2d9682b9f0970052b Mon Sep 17 00:00:00 2001 From: fukachan Date: Sun, 21 Jan 2001 07:33:48 +0000 Subject: export ml_home_dir from fmlwrapper to libexec/fml --- fml/libexec/fmlwrapper | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fml/libexec/fmlwrapper') diff --git a/fml/libexec/fmlwrapper b/fml/libexec/fmlwrapper index 7cbbb504..5facd77b 100755 --- a/fml/libexec/fmlwrapper +++ b/fml/libexec/fmlwrapper @@ -55,12 +55,14 @@ sub Bootstrap my @cf = (); my %options = (); my $my_default_config = ''; + my $ml_home_dir = ''; # e.g. /var/spool/ml/elena GetOptions(\%options, qw(ctladdr! debug! params=s -c=s) ); for (@ARGV) { if (-d $_) { + $ml_home_dir = $_; push(@cf, "$_/config.cf") if -f "$_/config.cf"; } elsif (-f $_) { @@ -95,8 +97,10 @@ sub Bootstrap { cf_list => \@cf, myname => $myname, + ml_home_dir => $ml_home_dir, options => \%options, }); + } -- cgit v1.2.1