source: projects/apt-rpm-manpages-ja/trunk/doc/ja/apt-config.ja.8.sgml @ 6625

Revision 6625, 3.1 KB checked in by daisuke, 12 years ago (diff)

convert from euc-jp to utf-8

Line 
1<!-- -*- mode: sgml; mode: fold -*- -->
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
3
4<!ENTITY % aptent SYSTEM "apt.ent.ja">
5%aptent;
6
7]>
8
9<refentry>
10 &apt-docinfo;
11 
12 <refmeta>
13   <refentrytitle>apt-config</refentrytitle>
14   <manvolnum>8</manvolnum>
15 </refmeta>
16 
17 <!-- Man page title -->
18 <refnamediv>
19    <refname>apt-config</refname>
20    <refpurpose>APT 設定取得プログラム</refpurpose>
21 </refnamediv>
22
23 <!-- Arguments -->
24 <refsynopsisdiv>
25   <cmdsynopsis>
26      <command>apt-config</command>
27      <arg><option>-hv</option></arg>
28      <arg><option>-o=<replaceable>config string</replaceable></option></arg>
29      <arg><option>-c=<replaceable>file</replaceable></option></arg>
30      <group choice="req">
31         <arg>shell</arg>
32         <arg>dump</arg>
33      </group>   
34   </cmdsynopsis>
35 </refsynopsisdiv>
36 
37 <RefSect1><Title>説明</Title>
38   <para>
39   <command>apt-config</command> は、APT システム(apt-get,apt-cache などのコマンド群)の様々な所で一貫した設定を行うために使用する、内部ツールです。
40スクリプト形式のアプリケーションで使いやすい方法で、メイン設定ファイル <filename>/etc/apt/apt.conf</filename> にアクセスします。</para>
41<para>
42   <option>-h</option> オプションや <option>--help</option> オプションを除き、以下に挙げるコマンドが必要です。
43</para>
44   
45   <VariableList>
46     <VarListEntry><Term>shell</Term>
47     <ListItem><Para>
48         shell は、シェルスクリプトから設定情報にアクセスするのに使用します。
49引数として、まずシェル変数、次に取得したい設定値をペアで与えます。
50出力として、現在の値ごとにシェル代入コマンドの一覧を表示します。
51シェルスクリプト内では、以下のようにしてください。
52     </Para>
53     
54<informalexample><programlisting>
55OPTS="-f"
56RES=`apt-config shell OPTS MyApp::Options`
57eval $RES
58</programlisting></informalexample>
59
60     <para>
61これは、MyApp::options の値をシェル環境変数 $OPTS にセットします。
62デフォルト値は <option>-f</option> となります。
63     </para><para>
64設定項目は /[fdbi] を後ろに付けることができます。
65f はファイル名を、d はディレクトリを、b は true か false を、i は整数を返します。
66返り値ごとに内部で正規化と検証を行います。
67     </para></ListItem>
68     </VarListEntry>
69
70     <VarListEntry><Term>dump</Term>
71     <ListItem><Para>
72設定項目の内容を表示します。
73     </Para></ListItem>
74     </VarListEntry>
75
76   </VariableList>
77 </RefSect1>
78
79 <RefSect1><Title>オプション</Title>
80   &apt-cmdblurb;
81   
82   <VariableList>
83   
84     &apt-commonoptions;
85     
86   </VariableList>
87 </RefSect1>
88
89 <RefSect1><Title>関連項目</Title>
90   <para>
91   &apt-conf;
92   </para>
93 </RefSect1>
94
95 <RefSect1><Title>診断メッセージ</Title>
96   <para>
97   <command>apt-config</command> は正常終了時に 0 を返します。 エラー時には十進の 100 を返します。
98   </para>
99 </RefSect1>
100
101 &manbugs;
102 &manauthor;
103 
104</refentry>
105
106<!--
107                Local Variables:
108                mode: nxml
109                End:
110-->
Note: See TracBrowser for help on using the repository browser.