どうやって動作するのか — 新しいアーカイブ

そのコマンドが何をするのか見てみましょう。

まず、larch は、新しいアーカイブについて知っています:

        # What archives does larch know about?
        #
        % larch archives
        lord@emf.net--2003-example
                /home/lord/{archives}/2003-example
        % larch whereis-archive lord@emf.net--2003-example
        /home/lord/{archives}/2003-example
        # Where is that data stored?
        # 
        % ls ~/.arch-params
        =default-archive   =id             =locations
        % cat ~/.arch-params/=default-archive
        lord@emf.net--2003-example
        % ls ~/.arch-params/=locations
        lord@emf.net--2003-example
        % cat ~/.arch-params/=locations/lord@emf.net--2003-example
        /home/lord/{archives}/2003-example

次に、アーカイブディレクトリは作成され、何行かが含まれています:

        % ls ~/{archives}
        2003-example
        % ls -a ~/{archives}/2003-example
        .                .archive-version
        ..               =meta-info
        % cat ~/{archives}/2003-example/.archive-version
        Hackerlab arch archive directory, format version 1.
        % ls -a ~/{archives}/2003-example/=meta-info/
        .       ..      name
        % cat ~/{archives}/2003-example/=meta-info/name
        lord@emf.net--2003-example

注意: ~/.arch-params/ の中のファイルや、アーカイブ中のファイルを 「手で」編集しないでください。