| |
|
Line 1
|
Parallel
|
Line 1
|
Parallel
|
| 1 |
#!/usr/bin/perl -wT |
1 |
#!/usr/bin/perl -wT |
| 2 |
|
2 |
|
| 3 |
# New comment |
|
|
|
|
|
|
| 5 |
############################################################################### |
3 |
############################################################################### |
| 6 |
# Codestriker: Copyright (c) 2001, 2002 David Sitsky. All rights reserved. |
4 |
# Codestriker: Copyright (c) 2001, 2002 David Sitsky. All rights reserved. |
| 7 |
# sits@users.sourceforge.net |
5 |
# sits@users.sourceforge.net |
|
# Version 1.1 |
6 |
# Version 1.2 |
| 9 |
# |
7 |
# |
| 10 |
# Codestriker is a perl CGI script which is used for performing code reviews |
8 |
# Codestriker is a perl CGI script which is used for performing code reviews |
| 11 |
# in a collaborative fashion as opposed to using unstructured emails. |
9 |
# in a collaborative fashion as opposed to using unstructured emails. |
| |
| |
|
Line 24
|
Parallel
|
Line 22
|
Parallel
|
| 24 |
# This program is free software; you can redistribute it and modify it under |
22 |
# This program is free software; you can redistribute it and modify it under |
| 25 |
# the terms of the GPL. |
23 |
# the terms of the GPL. |
| 26 |
|
24 |
|
|
|
25 |
# Constants for viewing modes. |
|
|
26 |
$NORMAL_MODE = 0; |
|
|
27 |
$COLOURED_MODE = 1; |
|
|
28 |
|
|
# BEGIN CONFIGURATION OPTIONS -------------------- |
29 |
# BEGIN CONFIGURATION OPTIONS -------------------- |
| 28 |
|
30 |
|
| 29 |
# Location of where to store the code review data. Make sure the |
31 |
# Location of where to store the code review data. Make sure the |
| |
| |
|
Line 36
|
Parallel
|
Line 38
|
Parallel
|
| 36 |
# Location of sendmail. |
38 |
# Location of sendmail. |
| 37 |
$sendmail = "/usr/lib/sendmail"; |
39 |
$sendmail = "/usr/lib/sendmail"; |
| 38 |
|
40 |
|
| 39 |
# Indicate whether or not the script can interface to CVS. |
|
|
| 40 |
$cvsenabled = 1; |
|
|
| 41 |
|
|
|
|
# How the CVS repository is accessed. For local access, this is set as the |
41 |
# How the CVS repository is accessed. For local access, this is set as the |
| 43 |
# empty string. |
42 |
# empty string. |
| 44 |
#$cvsaccess = ":ext:sits\@cvs.cvsplot.sourceforge.net:"; |
43 |
#$cvsaccess = ":ext:sits\@cvs.cvsplot.sourceforge.net:"; |
| |
| |
|
Line 46
|
Parallel
|
Line 45
|
Parallel
|
| 46 |
|
45 |
|
| 47 |
# The path of the cvs repository"; |
46 |
# The path of the cvs repository"; |
| 48 |
#$cvsrep = "/cvsroot/codestriker"; |
47 |
#$cvsrep = "/cvsroot/codestriker"; |
| 49 |
$cvsrep = "/home/sits/cvs"; |
48 |
#$cvsrep = "/home/sits/cvs"; |
|
|
49 |
$cvsrep = "/set/this/if/you/want/to/link/to/cvs"; |
| 50 |
|
50 |
|
| 51 |
# The CVS command to execute in order to retrieve file data. The revision |
51 |
# The CVS command to execute in order to retrieve file data. The revision |
| 52 |
# argument and filename is appended to the end of this string. |
52 |
# argument and filename is appended to the end of this string. |
| |
| |
|
Line 57
|
Parallel
|
Line 57
|
Parallel
|
| 57 |
# If the repository is local, this setting won't be required, as $cvsrep will |
57 |
# If the repository is local, this setting won't be required, as $cvsrep will |
|
# just be the local pathname. Make sure this is in a secure location. |
58 |
# just be the local pathname. Make sure this is in a secure location. |
| 59 |
#$ENV{'CVS_RSH'} = "ssh -i /var/www/codestriker/identity"; |
59 |
#$ENV{'CVS_RSH'} = "ssh -i /var/www/codestriker/identity"; |
|
$ENV{'CVS_RSH'} = "ssh"; |
60 |
#$ENV{'CVS_RSH'} = "ssh"; |
| 61 |
|
61 |
|
| 62 |
# Set the PATH to something sane. |
62 |
# Set the PATH to something sane. |
| 63 |
$ENV{'PATH'} = "/bin:/usr/bin"; |
63 |
$ENV{'PATH'} = "/bin:/usr/bin"; |
| |