匿名(anonymous) CVS を通してソ ースを取得する

If you would like to keep up with the current sources on a regular basis, you can fetch them from our CVS server and then use CVS to retrieve updates from time to time.

定期的に最新のソースを追いかけたい場合は、私達の CVS サーバから取り出すことができます。さらに、時々 CVS を使って更新部分を取り出せばよい のです。

匿名 CVS

  1. You will need a local copy of CVS (Concurrent Version Control System), which you can get from http://www.cyclic.com/ or any GNU software archive site. We currently recommend version 1.10 (the most recent at the time of writing). Many systems have a recent version of cvs installed by default.

    まず CVS (Concurrent Version Control System) のローカルコピーが必要です。これは http://www.cyclic.com/ もしくは、いずれかの GNU ソフトウェアアーカイブサイトから取って 来ることができます。今現在では バージョン 1.10 (執筆時点におけ る最新)を推奨します。多くのシステムでも、デフォルトで最新の cvs がインストールされているでしょう。

  2. Do an initial login to the CVS server:

    CVS サーバに初回のログインを行います:

    $ cvs -d :pserver:anoncvs@postgresql.org:/usr/local/cvsroot login
         
    You will be prompted for a password; enter 'postgresql'. You should only need to do this once, since the password will be saved in .cvspass in your home directory. パスワード入力のプロンプトが出ますので、 'postgresql' と入力します。このパスワードはあ なたのホームディレクトリにある .cvspass に保 存されるので、この作業をするのは初回のただ1度だけです。

  3. Fetch the Postgres sources:

    Postgres のソースを取り出します:

    cvs -z3 -d :pserver:anoncvs@postgresql.org:/usr/local/cvsroot co -P pgsql
         
    which installs the Postgres sources into a subdirectory pgsql of the directory you are currently in. これは、現在いるディレクトリ配下の pgsql サブディレクトリに Postgres のソース をインストールします。

    Note: If you have a fast link to the Internet, you may not need -z3, which instructs CVS to use gzip compression for transferred data. But on a modem-speed link, it's a very substantial win.

    インターネットへの太い線をお持ちであれば、-z3 はいらないかもしれません。これは CVS に対して、転送するデータを gzip 圧縮することを指示するものです。 モデムスピードの回線をお使いの場合は、非常に重要なオプションに なります。

    This initial checkout is a little slower than simply downloading a tar.gz file; expect it to take 40 minutes or so if you have a 28.8K modem. The advantage of CVS doesn't show up until you want to update the file set later on.

    この初回チェックアウト(訳注:checkout には本の貸出し手続きとい った意味がある)は、単に tar.gz ファイルを ダウンロードするのに比べるとやや時間がかかります。28.8K のモデム を使うなら 40 分程度はかかることを覚悟しておいた方がよいでしょう。 CVS の利点は、後日これらのファイル群 を更新したいと思ったときに生きてきます。

  4. Whenever you want to update to the latest CVS sources, cd into the pgsql subdirectory, and issue

    CVS 上の最新ソースに追随したければ、 pgsql サブディレクトリに cd し、

    $ cvs -z3 update -d -P
         
    This will fetch only the changes since the last time you updated. You can update in just a couple of minutes, typically, even over a modem-speed line. を行います。これは、あなたが最後に更新した時からの差分を取り出し ます。更新は、ほとんどの場合モデム経由でも数分程度で終わります。

  5. You can save yourself some typing by making a file .cvsrc in your home directory that contains

    ホームディレクトリに .cvsrc というファイル を置いておき、この中に以下のようなコマンドを書いておくこともでき ます:

    cvs -z3
    update -d -P
         
    This supplies the -z3 option to all cvs commands, and the -d and -P options to cvs update. Then you just have to say これにより、すべての cvs コマンドで -z3 オプシ ョンを指定することになり、また cvs update には -d-P オプションが渡されます。こうしておくと、 単に
    $ cvs update
         
    to update your files. とするだけで最新のファイルに更新できます。

Caution

Some older versions of CVS have a bug that causes all checked-out files to be stored world-writable in your directory. If you see that this has happened, you can do something like

CVS の以前のバージョンによっては、あ なたのディレクトリの中にチェックアウトしたファイルがすべて、誰か らでも書きこみ可能になってしまうというバグがあるものがあります。 もしこうなってしまったら、以下のように対処してください:

$ chmod -R go-w pgsql
    
to set the permissions properly. This bug is fixed as of CVS version 1.9.28. これでパーミッションが正しくセットされます。このバグは CVS バージョン 1.9.28 で改修されています。

CVS can do a lot of other things, such as fetching prior revisions of the Postgres sources rather than the latest development version. For more info consult the manual that comes with CVS, or see the online documentation at http://www.cyclic.com/.

CVS には他の効用もあります。たとえば、 Postgres の最新の開発バージョンより以 前の版のソースを取ってくることができます。より詳細な情報は、 CVS についてくるマニュアルや、 http://www.cyclic.com/ にあるオンラインドキュメントをご覧ください。