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"; |