- Merge the following from the English version:
r40658 -> r40675 head/ja_JP.eucJP/books/handbook/mirrors/chapter.xml
This commit is contained in:
parent
6aba0d141a
commit
954dd7a757
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40677
1 changed files with 49 additions and 15 deletions
|
@ -3,7 +3,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Japanese Documentation Project
|
||||
|
||||
Original revision: r40658
|
||||
Original revision: r40675
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
@ -600,7 +600,9 @@
|
|||
<title><application>Subversion</application> の実行</title>
|
||||
|
||||
<para><command>svn</command> コマンドを使って、
|
||||
必要なリポジトリのソースコードを以下のようにしてダウンロードします。</para>
|
||||
必要なリポジトリのソースコードを以下のようにしてダウンロードします。
|
||||
このディレクトリにあるファイルを
|
||||
<emphasis>ローカル作業コピー</emphasis> と呼びます。</para>
|
||||
|
||||
<warning>
|
||||
<para>すでにローカルディレクトリが存在していても、
|
||||
|
@ -614,13 +616,19 @@
|
|||
|
||||
<para>以下のように入力して、リポジトリからチェックアウトしてください。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>svn checkout <literal>svn://svn.FreeBSD.org/<replaceable>repository</replaceable>/<replaceable>branch</replaceable></literal> <replaceable>root</replaceable></userinput></screen>
|
||||
<screen>&prompt.root; <userinput>svn checkout <replaceable>svn-mirror</replaceable>/<replaceable>repository</replaceable>/<replaceable>branch</replaceable> <replaceable>lwcdir</replaceable></userinput></screen>
|
||||
|
||||
<para>ここで、<replaceable>repository</replaceable>,
|
||||
<replaceable>branch</replaceable> および <replaceable>root</replaceable>
|
||||
は以下のとおりです。</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para><replaceable>svn-mirror</replaceable> は、
|
||||
<link linkend="svn-mirrors">Subversion
|
||||
ミラーサイト</link> のひとつの URL です。</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><replaceable>repository</replaceable> には、
|
||||
プロジェクトのリポジトリ、すなわち <literal>base</literal>,
|
||||
|
@ -642,7 +650,7 @@
|
|||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><replaceable>root</replaceable> は、
|
||||
<para><replaceable>lwcdir</replaceable> は、
|
||||
指定したブランチの中身が置かれるターゲットのディレクトリです。
|
||||
通常 <literal>ports</literal> は <filename
|
||||
class="directory">/usr/ports</filename>、
|
||||
|
@ -653,21 +661,47 @@
|
|||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>初めてソースをダウンロードする際には、時間がかかります。
|
||||
ダウンロードが終わるまで走らせたままにしておいてください。</para>
|
||||
<para>以下の例では、Ports Collection を western US リポジトリから
|
||||
HTTPS プロトコルを使って、チェックアウトします。
|
||||
そしてそれらは、
|
||||
<filename class="directory">/usr/ports</filename>
|
||||
のローカル作業コピーに置かれます。
|
||||
もし <filename class="directory">/usr/ports</filename> がすでに存在して、
|
||||
それが <command>svn</command> によって生成されたものでなければ、
|
||||
チェックアウトする前に、名前を変更するか削除してください。</para>
|
||||
|
||||
<para>ダウンロードされたソースをアップデートするには、
|
||||
以下を実行してください。</para>
|
||||
<screen>&prompt.root; <userinput>svn checkout https://svn0.us-west.FreeBSD.org/head/ports /usr/ports</userinput></screen>
|
||||
|
||||
<screen>&prompt.root; <userinput>svn update <replaceable>root</replaceable></userinput></screen>
|
||||
<para>初めてチェックアウトする際には、
|
||||
リモートリポジトリのすべてのブランチをダウンロードするので時間がかかります。
|
||||
どうぞ我慢してください。</para>
|
||||
|
||||
<para>ソースをチェックアウトした後では、
|
||||
ドキュメントのアップデートにおいて、<filename
|
||||
class="directory"><replaceable>root</replaceable></filename>
|
||||
ディレクトリの <filename>Makefile</filename>
|
||||
が以下の別の方法をサポートしています。</para>
|
||||
<para>初めてのチェックアウト後は、
|
||||
以下を実行することでローカル作業コピーをアップデートできます。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>cd <replaceable>root</replaceable></userinput>
|
||||
<screen>&prompt.root; <userinput>svn update <replaceable>lwcdir</replaceable></userinput></screen>
|
||||
|
||||
<para>この例で作成された
|
||||
<filename class="directory">/usr/ports</filename> をアップデートするには、
|
||||
以下のようにしてください。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>svn update /usr/ports</userinput></screen>
|
||||
|
||||
<para>アップデートはチェックアウトにくらべ、
|
||||
変更点のあるファイルのみが転送されるので高速です。</para>
|
||||
|
||||
<para>チェックアウト後、ローカル作業コピーをアップデートするもうひとつの方法は、
|
||||
<filename
|
||||
class="directory">/usr/ports</filename>,
|
||||
<filename class="directory">/usr/src</filename> または
|
||||
<filename class="directory">/usr/doc</filename> ディレクトリの
|
||||
<filename>Makefile</filename> で提供されています。
|
||||
<makevar>SVN_UPDATE</makevar> を設定して
|
||||
<maketarget>update</maketarget> ターゲットを使ってください。
|
||||
たとえば、<filename class="directory">/usr/src</filename>
|
||||
をアップデートするには、以下のようにしてください。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>cd /usr/src</userinput>
|
||||
&prompt.root; <userinput>make update SVN_UPDATE=yes</userinput></screen>
|
||||
</sect2>
|
||||
|
||||
|
|
Loading…
Reference in a new issue