summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-10-22 11:04:50 +0000
committerfukachan <fukachan>2001-10-22 11:04:50 +0000
commitc492749e0d835c293870f52c343c9f3abdd9a306 (patch)
treea6e8207e086a9ee3c7277a197a2a5cb4a80a8d5f
parent39124b18fcea6bd80fe4a211984c6d37203a5004 (diff)
downloadfml8-c492749e0d835c293870f52c343c9f3abdd9a306.tar.gz
fml8-c492749e0d835c293870f52c343c9f3abdd9a306.tar.bz2
fml8-c492749e0d835c293870f52c343c9f3abdd9a306.zip
accept command line option: srcdir=$srcdir
-rw-r--r--fml/lib/FML/Command/Admin/htmlify.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/fml/lib/FML/Command/Admin/htmlify.pm b/fml/lib/FML/Command/Admin/htmlify.pm
index f3500129..92a88b44 100644
--- a/fml/lib/FML/Command/Admin/htmlify.pm
+++ b/fml/lib/FML/Command/Admin/htmlify.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: htmlify.pm,v 1.4 2001/10/14 00:44:13 fukachan Exp $
+# $FML: htmlify.pm,v 1.1 2001/10/21 14:46:55 fukachan Exp $
#
package FML::Command::Admin::htmlify;
@@ -43,12 +43,13 @@ sub process
my ($self, $curproc, $command_args) = @_;
my $command = $command_args->{ 'command' };
my $config = $curproc->{ 'config' };
- my $spool_dir = $config->{ spool_dir };
+ my $src_dir = $config->{ spool_dir };
my $options = $command_args->{ options };
my $dst_dir = undef;
for (@$options) {
if (/outdir=(\S+)/) { $dst_dir = $1;}
+ if (/srcdir=(\S+)/) { $src_dir = $1;}
}
if (defined $dst_dir) {
@@ -58,7 +59,7 @@ sub process
}
use Mail::HTML::Lite;
- &Mail::HTML::Lite::htmlify_dir($spool_dir, { directory => $dst_dir });
+ &Mail::HTML::Lite::htmlify_dir($src_dir, { directory => $dst_dir });
}
else {
croak("no destination directory\n");