summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2005-11-29 14:05:11 +0000
committerfukachan <fukachan>2005-11-29 14:05:11 +0000
commita49d4a8e64ab4bfab3556adb71e551c855a83d51 (patch)
tree4cfe876daea4a8b664c5deacfddb1d6ee494e53e /fml
parent4d8d34869a82ddef3e3670853f7a58190b817d89 (diff)
downloadfml8-a49d4a8e64ab4bfab3556adb71e551c855a83d51.tar.gz
fml8-a49d4a8e64ab4bfab3556adb71e551c855a83d51.tar.bz2
fml8-a49d4a8e64ab4bfab3556adb71e551c855a83d51.zip
add recipe: Where directory names are defined
Diffstat (limited to 'fml')
-rw-r--r--fml/doc/en/tutorial/internals/directory.sgml49
-rw-r--r--fml/doc/ja/tutorial/internals/directory.sgml50
2 files changed, 97 insertions, 2 deletions
diff --git a/fml/doc/en/tutorial/internals/directory.sgml b/fml/doc/en/tutorial/internals/directory.sgml
index 5e1e1c4d..696e620b 100644
--- a/fml/doc/en/tutorial/internals/directory.sgml
+++ b/fml/doc/en/tutorial/internals/directory.sgml
@@ -1,5 +1,5 @@
<!--
- $FML: directory.sgml,v 1.2 2005/08/03 13:22:06 fukachan Exp $
+ $FML: directory.sgml,v 1.3 2005/09/25 04:27:18 fukachan Exp $
-->
@@ -45,4 +45,51 @@ It must be enough to assume that 1 million articles for one ML.
</sect1>
+<sect1 id="directory.recipes">
+ <title>
+ Recipes
+ </title>
+
+<qandaset>
+
+<qandaentry>
+
+<question>
+<para>
+Where directory names are defined ?
+</para>
+</question>
+
+<answer>
+<para>
+There are default definitiions at
+/usr/local/etc/fml/defaults/$VERSION/default_config.cf file.
+Each config.cf of each ML overloads them.
+Use fmlconf command to show the current value.
+<screen>
+
+% fmlconf $ml_name | grep _dir
+
+</screen>
+You can extract values from config object in a hook.
+<screen>
+
+$_xxx_hook = q{
+ my $config = $curproc->config();
+ my $xxxdir = $config->{ some_where_dir };
+
+ ... snip ...
+}
+
+</screen>
+
+</para>
+</answer>
+
+</qandaentry>
+
+</qandaset>
+
+</sect1>
+
</chapter>
diff --git a/fml/doc/ja/tutorial/internals/directory.sgml b/fml/doc/ja/tutorial/internals/directory.sgml
index bf3ed14e..6816b370 100644
--- a/fml/doc/ja/tutorial/internals/directory.sgml
+++ b/fml/doc/ja/tutorial/internals/directory.sgml
@@ -1,5 +1,5 @@
<!--
- $FML: directory.sgml,v 1.5 2004/10/06 09:07:38 fukachan Exp $
+ $FML: directory.sgml,v 1.6 2005/06/25 15:11:34 fukachan Exp $
-->
@@ -51,4 +51,52 @@ HTML 化されたファイルをおくサブディレクトリを 1000 ごとに用意すると、
</sect1>
+<sect1 id="directory.recipes">
+ <title>
+ レシピ's
+ </title>
+
+<qandaset>
+
+<qandaentry>
+
+<question>
+<para>
+ディレクトリ名はどこに定義されていますか?
+</para>
+</question>
+
+<answer>
+<para>
+/usr/local/etc/fml/defaults/$VERSION/default_config.cf
+にデフォルトの定義が書かれています。
+各MLの config.cf で上書きも出来ます。
+動作時に使っている値は fmlconf で表示させるとよいでしょう。
+<screen>
+
+% fmlconf ML名 | grep _dir
+
+</screen>
+これらの値を HOOK で使う際には config オブジェクトから取り出して下さい。
+<screen>
+
+$_xxx_hook = q{
+ my $config = $curproc->config();
+ my $xxxdir = $config->{ some_where_dir };
+
+ ... 略 ...
+}
+
+</screen>
+
+</para>
+</answer>
+
+</qandaentry>
+
+</qandaset>
+
+</sect1>
+
+
</chapter>