.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "DH_INSTALLMAN 1" .TH DH_INSTALLMAN 1 "2017-05-26" "10.4" "Debhelper" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "名前" .IX Header "名前" dh_installman \- パッケージビルドディレクトリ以下に man ページをインストールする .SH "書式" .IX Header "書式" \&\fBdh_installman\fR [\fIdebhelper options\fR] [\fImanpage\fR ...] .SH "説明" .IX Header "説明" \&\fBdh_installman\fR is a debhelper program that handles installing man pages into the correct locations in package build directories for when upstream's build system does not properly install them as a part of its install step (or it does not have an install step). .PP If upstream's installs the manpages in the proper directories, \&\fIdh_install\fR\|(1) may be easier to use for deciding which package should ship the manpages. In this case, \fBdh_installman\fR can still be useful for converting the manpage encoding to \s-1UTF\-8\s0 and for converting \fI.so\fR links (as described below). However, that part happens automatically without any explicit configuration. .PP You tell it what man pages go in your packages, and it figures out where to install them based on the section field in their \fB.TH\fR or \fB.Dt\fR line. If you have a properly formatted \fB.TH\fR or \fB.Dt\fR line, your man page will be installed into the right directory, with the right name (this includes proper handling of pages with a subsection, like \fB3perl\fR, which are placed in \fIman3\fR, and given an extension of \fI.3perl\fR). If your \fB.TH\fR or \fB.Dt\fR line is incorrect or missing, the program may guess wrong based on the file extension. .PP このコマンドは翻訳された man ページについても、\fI.ll.8\fR や \fI.ll_LL.8\fR の拡張子に持つファイルを探す事により、あるいは、\fB\-\-language\fR を指定することによって扱います。 .PP \&\fBdh_installman\fR が間違った章番号や、間違った拡張子をつけて man ページをインストールするように見えるときがあります。これは、man ページが間違った章番号を \fB.TH\fR や \fB.Dt\fR 行に列挙しているのが原因です。この場合、man ページを編集して、章番号を正しくすれば、\fBdh_installman\fR は意図どおりに動作するようになります。\fB.TH\fR 章についての詳細は \&\fIman\fR\|(7) を参照ください。さらに、\fB.Dt\fR 章については、\fImdoc\fR\|(7) を参照ください。また、\fBdh_installman\fR が \&\fI/usr/share/man/pl/man1/\fR のようなディレクトリへ man ページをインストールしてしまう場合があります。これは、パッケージにF のような名前を持つファイルがあり、\fBdh_installman\fR がこれをポーランド語への翻訳済み man ページと勘違いする時となります。この動作を避けるには、\fB\-\-language=C\fR を利用してください。 .PP \&\fBdh_installman\fR は、man ページをインストールした後に、処理を行ったパッケージ内の一時ディレクトリ以下にある全 man ページを対象に、\fI.so\fR リンクを含むかどうかを確認します。もし存在するようであれば、その man ページ本体をシンボリックリンクへ変更します。 .PP また、\fBdh_installman\fR は man コマンドを使って、man ページの文字コードを推定し、UTF\-8 に変換します。この推定作業は失敗に終わる事があるので、文字コード宣言文を使って検出されるべき文字コードの情報を上書きできます。詳細については \&\fImanconv\fR\|(1) を参照ください。 .SH "ファイル" .IX Header "ファイル" .IP "debian/\fIpackage\fR.manpages" 4 .IX Item "debian/package.manpages" インストールされるべき man ページを列挙したものです。 .SH "オプション" .IX Header "オプション" .IP "\fB\-A\fR, \fB\-\-all\fR" 4 .IX Item "-A, --all" 全パッケージに対して、コマンドラインパラメータに指定されたファイルを全てインストールします。 .IP "\fB\-\-language=\fR\fIll\fR" 4 .IX Item "--language=ll" 処理予定の man ページがどんな言語で記載されているかをこちらのオプションを使って指定します。 .IP "\fImanpage\fR ..." 4 .IX Item "manpage ..." 最初に処理するパッケージにこれらの man ページをインストールします (あるいは、\fB\-A\fR が指定された場合は、全パッケージにインストールを行います) .SH "使用例" .IX Header "使用例" An example \fIdebian/manpages\fR file could look like this: .PP .Vb 9 \& doc/man/foo.1 \& # Translations \& doc/man/foo.da.1 \& doc/man/foo.de.1 \& doc/man/foo.fr.1 \& # NB: The following line is considered a polish translation \& # of "foo.1" (and not a manpage written in perl called "foo.pl") \& doc/man/foo.pl.1 \& # ... .Ve .SH "付記" .IX Header "付記" 本プログラムの昔のバージョンのプログラムである \fIdh_installmanpages\fR\|(1) を未だに利用しているパッケージが存在します。また、\fIdh_installmanpages\fR\|(1) は未だに debhelper に梱包されています。しかしながら、このプログラムは、非直感的で統一されていないインターフェースの為に、すでに廃止となっています。代わりに本プログラムを使ってください。 .SH "参照" .IX Header "参照" \&\fIdebhelper\fR\|(7) .PP このプログラムは debhelper の一部です。 .SH "作者" .IX Header "作者" Joey Hess