/[simile]/svn/index.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /svn/index.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 47 by dpavlin, Mon Oct 27 20:34:27 2008 UTC revision 48 by dpavlin, Mon Oct 27 22:03:31 2008 UTC
# Line 15  my $debug = $ENV{'DEBUG'} || 0; Line 15  my $debug = $ENV{'DEBUG'} || 0;
15    
16  my $config_path = $0;  my $config_path = $0;
17  $config_path =~ s/.cgi/.js/;  $config_path =~ s/.cgi/.js/;
18    
19    my $hostname = `hostname -s`;
20    chomp($hostname);
21    $hostname .= '.js';
22    $config_path = $hostname if -e $hostname;
23    
24  my $config = from_json( read_file( $config_path ) );  my $config = from_json( read_file( $config_path ) );
25  my $repository_dir = $config->{repository_dir} || die "no repository_dir in $config_path";  my $repository_dir = $config->{repository_dir} || die "no repository_dir in $config_path";
26  my $svnweb = $config->{svnweb} || die "no svnweb in $config_path";  my $svnweb = $config->{svnweb} || die "no svnweb in $config_path";

Legend:
Removed from v.47  
changed lines
  Added in v.48

  ViewVC Help
Powered by ViewVC 1.1.26