Emacsのbuild

久々に、CocoaEmacsをbuildしなおすことにした。さて、cvs updateしてみると、意外と更新されてるファイルが少ない気がする。.gitignoreってファイルもあることだし、「あれ?gitだっけ?gitの場合cvs update相当のコマンドは何だっけ?」と思いつつemacs - Summary [Savannah]を見てみたら、正解はCVSでもgitでもなかった。

Note that the CVS and Git repositories are not up-to-date.

しょうがない、そのBazaarとやらをインストールするか。とりあえず、何も考えずに、以下のコマンドを入力する。

% sudo port install bazaar

で、その後、emacs - Summary [Savannah]に書いてあるように、以下のコマンドを入力しようとすると、コマンドがない。

bzr branch http://bzr.savannah.gnu.org/r/emacs/trunk

どうやら、MacPortsでインストールすべきは、bazaarではなくbzrだったらしい。

% sudo port install bzr
(中略)
% bzr branch http://bzr.savannah.gnu.org/r/emacs/trunk
(後略)

bzrでチェックアウトするのが、意外と時間かかる。checkoutしてしまえば、後はいつもどおり。

% mkdir emacs
% cd emacs
% ../trunk/configure --with-ns && make

bzrでチェックアウトしなおしたので、makeが終わった後はmake bootstrapしておく。