Update of /cvsroot/fink/scripts/installer/dmg/doc/packaging
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24327/scripts/installer/dmg/doc/packaging

Modified Files:
        packaging.ja.html packaging.zh.html 
Log Message:
en 1.87

Index: packaging.ja.html
===================================================================
RCS file: /cvsroot/fink/scripts/installer/dmg/doc/packaging/packaging.ja.html,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- packaging.ja.html   23 Feb 2006 07:23:50 -0000      1.33
+++ packaging.ja.html   11 Apr 2006 23:57:58 -0000      1.34
@@ -306,7 +306,12 @@
                                                        
この展開は<b>親</b>のデフォルトになる.
                                                        
                                                </p>
-                                       </td></tr></table>
+                                       </td></tr><tr 
valign="top"><td>%{PatchFile}</td><td>
+<p>
+<tt style="white-space: nowrap;">PatchFile</tt> 
フィールドで示されたファイルのフルパス.
+(fink-0.24.12 にて導入)
+</p>
+</td></tr></table>
                
        <h2><a name="policy">3 パッケージ化ポリシー</a></h2>
                
@@ -1872,9 +1877,9 @@
                                                <p>
                                                        <tt style="white-space: 
nowrap;">patch -p1 &lt;<b>パッチファイル</b></tt> 
として適用されるパッチのファイル名.
                                                        
ここにはファイル名のみを指定します.
-                                                       
適切なパスは自動的に前置されます.
+                                                       適切なパス (<tt 
style="white-space: nowrap;">.info</tt>のあるディレクトリ) 
は自動的に前置されます.
                                                        
このフィールドではパーセント展開が行われるので,典型的な値は単に
 <tt style="white-space: nowrap;">%f.patch</tt> または <tt 
style="white-space: nowrap;">%n.patch</tt> となります.
-                                                       PatchScript 
が指定されている場合,パッチはその後に実行されます.
+                                                       PatchScript 
が指定されている場合,パッチはその後に別のステップとして実行されます.
                                                </p>
                                                <p>
                                                        %n は %type_ 
系で示される変種データ全てを含む文字列に展開されることに注意.
@@ -1883,15 +1888,42 @@
                                                        
各変種固有の変更点を <tt style="white-space: 
nowrap;">PatchScript</tt> に記述する方が,
                                                        
各変種毎にパッチファイルを作るより手間が少ないでしょう.
                                                </p>
-                                       </td></tr><tr 
valign="top"><td>PatchScript</td><td>
+                                       </td></tr><tr 
valign="top"><td>PatchFile</td><td>
+<p>
+<tt style="white-space: nowrap;">Patch</tt> フィールドと同じ文法.
+このファイルへのフルパスは, <tt style="white-space: 
nowrap;">%{PatchFile}</tt> 
パーセント展開で利用することができます.
+<tt style="white-space: nowrap;">Patch</tt> と異なり, <tt 
style="white-space: nowrap;">PatchFile</tt> は <tt style="white-space: 
nowrap;">PatchScript</tt> の一部分として適用されます.
+Fink 
は,そのアイルが存在し,読み取り可能であり,チェックサムが
 <tt style="white-space: nowrap;">PatchFile-MD5</tt> 
フィールドと適合していることを確認します.
+</p>
+<p>
+<tt style="white-space: nowrap;">Patch</tt> と <tt style="white-space: 
nowrap;">PatchFile</tt> 
を,ひとつのパッケージ記述中に同時に使うことはできません.
+<tt style="white-space: nowrap;">PatchFile</tt> 
を使うパッケージは,<tt style="white-space: nowrap;">BuildDepends: 
fink (&gt;= 0.24.12)</tt> を宣言しなければなりません.
+他の理由があればこれより大きいバージョン番号を使ってもかまいません.
+</p>
+</td></tr><tr valign="top"><td>PatchFile-MD5</td><td>
+<p>
+<tt style="white-space: nowrap;">PatchFile</tt> 
フィールドで与えられたファイルの MD5 チェックサム.
+<tt style="white-space: nowrap;">PatchFile</tt> 
を使用する際には必須.
+(fink-0.24.12 で導入)
+</p>
+</td></tr><tr valign="top"><td>PatchScript</td><td>
                                                <p>
                                                        
パッチ段階で実行されるコマンドのリスト.
                                                        
下記のスクリプトの注意書きを参照してください.
                                                        
ここには,パッチを当てるか,またはパッケージに変更を加えるコマンドを指定します.
                                                        下記の<a 
href="#reference.scripts">スクリプトに関する注記</a>もあわせて参照してください.
                                                        
コマンド実行前に,<a 
href="#format.percent">パーセント展開</a>が行われます.
-                                                       
デフォルト値はありません.
-                                               </p>
+<tt style="white-space: nowrap;">PatchFile</tt> 
フィールドが存在する場合,
+<tt style="white-space: nowrap;">PatchScript</tt> の既定値は:
+</p>
+<pre>
+patch -p1 &lt; %{PatchFile}
+</pre>
+<p>
+です.
+<tt style="white-space: nowrap;">PatchFile</tt> 
がない場合の既定値は空白となります.
+<tt style="white-space: nowrap;">PatchScript</tt> 
を明示的に用いる場合, <tt style="white-space: 
nowrap;">PatchFile</tt> を明示しなければなりません.
+</p>
                                        </td></tr></table>
                        <p>
                                <b>コンパイル段階関連:</b>
@@ -2453,6 +2485,9 @@
                        <p>
                                
新しく導入された方の簡潔なパッケージファイル命名規則を採用しているなら,
 %f でなく %n を使うこと.
                                
これら2つのフィールドは互いに排他的ではなく,両方指定することもできます
 (PatchScript, Patch の順に両方実行されます).
+                               あるいは,<tt style="white-space: 
nowrap;">Patch</tt> の代わりに,新しい <tt style="white-space: 
nowrap;">PatchFile</tt> を用い,
+                               明示的または暗示的に <tt 
style="white-space: nowrap;">PatchScript</tt> を適用します.
+                               詳細は <tt style="white-space: 
nowrap;">PatchFile</tt> および <tt style="white-space: 
nowrap;">PatchScript</tt> の説明を参照.
                        </p>
                        <p>
                                
パッチファイルではユーザがインストールディレクトリを選択できるようにする方がよいので,
@@ -2501,4 +2536,4 @@
 provided the document and this copyright notice remain complete and
 unmodified. Any commercial reproduction and any online publication
 requires the explicit consent of the author.</p><hr>
-<p>Generated from <i>$Fink: packaging.ja.xml,v 1.38 2006/02/23 07:22:43 
babayoshihiko Exp $</i></p></body></html>
+<p>Generated from <i>$Fink: packaging.ja.xml,v 1.39 2006/04/11 23:52:29 
babayoshihiko Exp $</i></p></body></html>

Index: packaging.zh.html
===================================================================
RCS file: /cvsroot/fink/scripts/installer/dmg/doc/packaging/packaging.zh.html,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- packaging.zh.html   23 Feb 2006 07:23:50 -0000      1.33
+++ packaging.zh.html   11 Apr 2006 23:57:58 -0000      1.34
@@ -265,6 +265,11 @@
 default for <tt style="white-space: nowrap;">InstallScript</tt> in a <tt 
style="white-space: nowrap;">SplitOff</tt>
 package is blank. (Introduced in fink-0.20.6)
 </p>
+</td></tr><tr valign="top"><td>%{PatchFile}</td><td>
+<p>
+The full path to the file given in the <tt style="white-space: 
nowrap;">PatchFile</tt> field.
+(Introduced in fink-0.24.12)
+</p>
 </td></tr></table>
 
 
@@ -1547,21 +1552,56 @@
 <tt style="white-space: nowrap;">/sw/lib/fink/update</tt>)。
 </p>
 </td></tr><tr valign="top"><td>Patch</td><td>
+
 <p>
 应用于 <tt style="white-space: nowrap;">patch -p1
-&lt;<b>patch-file</b></tt> 
命令的补丁文件的名字。这应该只是一个文件名;正确的路径会被自动添加。在本字段中会应用百分号展开。所以典型的设置值只是
-<tt style="white-space: nowrap;">%f.patch</tt> 或 <tt style="white-space: 
nowrap;">%n.patch</tt>。补丁会在 PatchScript 
脚本运行之前应用(如果有的话)。
+&lt;<b>patch-file</b></tt> 
命令的补丁文件的名字。这应该只是一个文件名;正确的路径会被自动添加(the
 same directory where the <tt style="white-space: nowrap;">.info</tt> file
+ is located)。 
在本字段中会应用百分号展开。所以典型的设置值只是
+<tt style="white-space: nowrap;">%f.patch</tt> 或 <tt style="white-space: 
nowrap;">%n.patch</tt>。补丁会在 PatchScript 脚本运行之前 in a 
separate step 应用(如果有的话)。
 </p>
+
 <p>
 记住 %n 包括所有 %type_ 
变种数据,所以你可能需要在这里使用 %{ni} 
(也许需要包括一些特定的 %type_ 展开)。
 维护一个单独的补丁文件,然后在 <tt style="white-space: 
nowrap;">PatchScript</tt> 
字段中列出与变种有关的修改会比对每个变种使用单独的补丁文件容易些。
 </p>
+</td></tr><tr valign="top"><td>PatchFile</td><td>
+<p>
+The same syntax as the <tt style="white-space: nowrap;">Patch</tt> field. The 
full path to this
+file is available using the <tt style="white-space: nowrap;">%{PatchFile}</tt> 
percent
+expansion--do not use <tt style="white-space: nowrap;">%a</tt> to access this 
file.
+Unlike <tt style="white-space: nowrap;">Patch</tt>, <tt style="white-space: 
nowrap;">PatchFile</tt> is applied as part
+of <tt style="white-space: nowrap;">PatchScript</tt>. Fink checks that the 
listed file exists,
+is readable, and that its checksum matches
+the <tt style="white-space: nowrap;">PatchFile-MD5</tt> field.
+</p>
+<p>
+You may not use both <tt style="white-space: nowrap;">Patch</tt> and <tt 
style="white-space: nowrap;">PatchFile</tt> in
+the same package description. Any package that
+uses <tt style="white-space: nowrap;">PatchFile</tt> must declare at least
+<tt style="white-space: nowrap;">BuildDepends: fink (&gt;= 0.24.12)</tt>. 
Giving a higher version
+requirement is allowed if it is necessary for other reasons.
+</p>
+</td></tr><tr valign="top"><td>PatchFile-MD5</td><td>
+<p>
+The MD5 checksum of the file given in the <tt style="white-space: 
nowrap;">PatchFile</tt>
+field. This field is required if <tt style="white-space: 
nowrap;">PatchFile</tt> is used.
+(Introduced in fink-0.24.12)
+</p>
 </td></tr><tr valign="top"><td>PatchScript</td><td>
 <p>
 
在补丁阶段运行的一系列命令。这是对软件包打补丁或修改软件包的地方。
 参阅下面关于<a href="#reference.scripts">脚本的注意事项</a>。
 在命令运行之前,会进行<a 
href="#format.percent">百分号展开</a>。
-在这里没有默认运行的命令。
+If a <tt style="white-space: nowrap;">PatchFile</tt> field exists, the
+default <tt style="white-space: nowrap;">PatchScript</tt> is:
+</p>
+<pre>
+patch -p1 &lt; %{PatchFile}
+</pre>
+<p>
+If there is no <tt style="white-space: nowrap;">PatchFile</tt>, the default is 
blank. If you
+have an explicit <tt style="white-space: nowrap;">PatchScript</tt>, you must 
apply
+the <tt style="white-space: nowrap;">PatchFile</tt> explicitly.
 </p>
 </td></tr></table>
 <p><b>编译阶段:</b></p>
@@ -2048,7 +2088,16 @@
 <pre>Patch: %f.patch</pre>
 <pre>PatchScript: patch -p1 &lt;%a/%f.patch</pre>
 <p>如果你使用比较新的简单软件包命名约定,使用 %n
-来代替 
%f。这两个字段不是互斥的,你可以两个都使用,它们都会被执行。这种情况下,PatchScript
 会在后面被执行。</p>
+来代替 
%f。这两个字段不是互斥的,你可以两个都使用,它们都会被执行。这种情况下,PatchScript
 会在后面被执行。
+
+Alternately, you can use the
+newer <tt style="white-space: nowrap;">PatchFile</tt> instead of <tt 
style="white-space: nowrap;">Patch</tt> and apply
+with an implicit or explicit <tt style="white-space: 
nowrap;">PatchScript</tt>--see the
+descriptions of the <tt style="white-space: nowrap;">PatchFile</tt>
+and <tt style="white-space: nowrap;">PatchScript</tt> fields for more 
information.
+
+</p>
+
 
<p>因为你可能会在补丁文件中允许用户选择安装前缀,建议在补丁文件中使用类似
 <tt style="white-space: nowrap;">@PREFIX@</tt> 的变量来代替 <tt 
style="white-space: nowrap;">/sw</tt>,然后使用:</p>
 <pre>PatchScript: sed 's|@PREFIX@|%p|g' &lt;%a/%f.patch | patch -p1</pre>
 <p>补丁文件应该是 unidiff 格式,而且一般应该通过:</p>
@@ -2081,4 +2130,4 @@
 provided the document and this copyright notice remain complete and
 unmodified. Any commercial reproduction and any online publication
 requires the explicit consent of the author.</p><hr>
-<p>Generated from <i>$Fink: packaging.zh.xml,v 1.26 2006/02/23 07:22:42 
babayoshihiko Exp $</i></p></body></html>
+<p>Generated from <i>$Fink: packaging.zh.xml,v 1.27 2006/04/11 23:52:29 
babayoshihiko Exp $</i></p></body></html>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to