Fixed absolute/relative www/cvs references across the websites.
[www.jankratochvil.net.git] / IndexCVS.pm
1 # $Id$
2 # Index file for: cvs.jankratochvil.net
3 # Copyright (C) 2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 package IndexCVS;
20 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
21 use vars qw($VERSION $CVS_ID);
22 $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
23 $CVS_ID=q$Id$;
24 use strict;
25 use warnings;
26
27 use My::Web;
28 use Carp qw(confess cluck);
29
30
31 sub handler
32 {
33 my $W=My::Web->init(
34                 "title"=>"CVS Repository",
35                 "heading"=>0,
36                 );
37 My::Web->heading();
38
39
40 print <<"HERE";
41 <h1>CVS Repository of Jan Kratochvil</h1>
42
43 <h2>Access methods</h2>
44 <ul>
45         <li>CVS pserver <span class="quote">:pserver:pserver:@{[ '@' ]}cvs.jankratochvil.net/cvs</span></li>
46         <li>@{[ a_href 'viewcvs/','ViewCVS' ]} web interface</li>
47 </ul>
48
49 <h2>Description</h2>
50 <p>Here you will find the public files stored in the personal CVS repository of
51 @{[ a_href 'http://www.jankratochvil.net/','Jan Kratochvil' ]}.</p>
52 <p>You will need the tool @{[ a_href 'http://www.cvshome.org/','CVS' ]} to fully
53 utilize it. Credentials are:</p>
54 <dl class="blockquote">
55         <dt>CVSROOT</dt><dd class="quote">:pserver:pserver@{[ '@' ]}cvs.jankratochvil.net/cvs</dd>
56         <dt>password</dt><dd>empty (just hit <span class="keystroke">ENTER</span>)</dd>
57         <dt>module</dt><dd>directory name from
58                         @{[ a_href 'viewcvs/','ViewCVS' ]} such as &quot;<span class="quote">nethome</span>&quot;</dd>
59 </dl>
60 <p>The following command will download you directory <b>SOME_MODULE_NAME</b>
61 in UNIX environemnt; @{[ a_href 'http://www.cvshome.org/','CVS' ]} version 1.11 or higher
62 is required for this command:</p>
63 <pre class="blockquote">
64 cvs -d :pserver:pserver:@{[ '@' ]}cvs.jankratochvil.net:/cvs checkout <b>SOME_MODULE_NAME</b>
65 </pre>
66 <p>Some files or the directory listing of &quot;<span class="quote">priv/</span>&quot;
67 may not be accessible. This is probably intentional and therefore downloading
68 of <span class="quote">.tar.gz</span> may fail if such protected file is
69 present anywhere in subdirectory files - the resulting archive will be
70 corrupted and it will contain some @{[ a_href 'http://www.python.org/','Python' ]}
71 error message in its beginning.</p>
72 HERE
73
74
75 exit;
76 }
77 1;