レポジトリを覗いてみましょう。CVSROOTというディレクトリがありますね。 その中にはレポジトリの管理情報が含まれています。この中のmodulesという ファイルでは、moduleごとにcvsの各コマンドを実行したときに実行するプロ グラムを指定できます。書き方は、このファイルのコメントに全部書いてあり ます。
# Three different line formats are valid: # key -a aliases... # key [options] directory # key [options] directory files... # # Where "options" are composed of: # -i prog Run "prog" on "cvs commit" from top-level of module. # -o prog Run "prog" on "cvs checkout" of module. # -e prog Run "prog" on "cvs export" of module. # -t prog Run "prog" on "cvs rtag" of module. # -u prog Run "prog" on "cvs update" of module. # -d dir Place module in directory "dir" instead of module name. # -l Top-level directory only -- do not recurse. # # NOTE: If you change any of the "Run" options above, you'll have to # release and re-checkout any working directories of these modules. # # And "directory" is a path to a directory relative to $CVSROOT. # # The "-a" option specifies an alias. An alias is interpreted as if # everything on the right of the "-a" had been typed on the command line. # # You can encode a module within a module by using the special '&' # character to interpose another module into the current module. This # can be useful for creating a module that consists of many directories # spread out over the entire source repository.たとえばpublic-htmlというモジュールを作成してあって、commitした 時に自動的にWWWサーバに転送するようにしたかったら、以下の行を追加します。
public-html -i scripts/dist-public-html public-htmlディレクトリは絶対pathでも$CVSROOTからの相対pathでも記述できます。 上記の場合$CVSROOT/dist-public-htmlには例えば以下の内容を書きます。
#!/bin/sh rsh www.domain.name 'cd /htdocs/user/MYNAME/public-html;cvs update -d &ただし、このコンテンツを複数の人で共有する場合はcvs updateした後に chmod -R g+w *を実行しておいた方が良いでしょう。
おっと、その前に。慌てないでください。CVSROOT以下のファイルは直接編集しては いけません。他のmoduleを編集する場合と同じように
cvs co CVSROOTして取り出して編集した後commitしてください。