mattintosh note

どこかのエンジニアモドキの備忘録

git cvsimport で cvsps が見つからない

先日 hg convert を試したので、今度は git cvsimport をやってみることにした。

git cvsimport -v \
-d :pserver:cvsanon@cvs.maptools.org:/cvs/maptools/cvsroot \
-R libtiff \
-C libtiff

cvsimport を使用するには cvsps が必要になるらしい。Git の公式バイナリには含まれていないので自分で入れなくてはならない。

Initialized empty Git repository in /private/tmp/45C6108D-955B-4F91-BC8A-CE82832E23B0/libtiff/.git/ Running cvsps... Can't exec "cvsps": No such file or directory at /usr/local/git/libexec/git-core/git-cvsimport line 756, line 3. Could not start cvsps: No such file or directory git cvsimport: fatal: cvsps reported error

ソースを http://www.cobite.com/cvsps からダウンロードしてビルドする。デフォルトのインストール先は /usr/local なので変更する場合は Makefile 変数を上書きする。

tar xf cvsps-2.1.tar.gz
cd cvsps-2.1
make
make install prefix=/usr/local/git

MacPorts で入れたほうが楽かもしれない。

sudo port install cvsps
Port cvsps contains: /opt/local/bin/cvsps /opt/local/share/man/man1/cvsps.1.gz