From 2a3c2708fd1f55bd06d0b48a132d487a1745c075 Mon Sep 17 00:00:00 2001 From: "jkeiser%netscape.com" <> Date: Thu, 31 Jul 2003 03:04:48 +0000 Subject: Patch Viewer, a pretty way of viewing and manipulating patches (bug 174942). Requires PatchIterator to be installed, classes uploaded to that bug and will be soon in CPAN. --- checksetup.pl | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index 27542d8e4..b7c1fdd0f 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -430,6 +430,60 @@ LocalVar('mysqlpath', <<"END"); END +my $cvs_executable = `which cvs`; +if ($cvs_executable =~ /no cvs/) { + # If which didn't find it, just set to blank + $cvs_executable = ""; +} else { + chomp $cvs_executable; +} + +LocalVar('cvsbin', <<"END"); +# +# For some optional functions of Bugzilla (such as the pretty-print patch +# viewer), we need the cvs binary to access files and revisions. +# Because it's possible that this program is not in your path, you can specify +# its location here. Please specify the full path to the executable. +\$cvsbin = "$cvs_executable"; +END + + +my $interdiff_executable = `which interdiff`; +if ($interdiff_executable =~ /no interdiff/) { + # If which didn't find it, set to blank + $interdiff_executable = ""; +} else { + chomp $interdiff_executable; +} + +LocalVar('interdiffbin', <<"END"); + +# +# For some optional functions of Bugzilla (such as the pretty-print patch +# viewer), we need the interdiff binary to make diffs between two patches. +# Because it's possible that this program is not in your path, you can specify +# its location here. Please specify the full path to the executable. +\$interdiffbin = "$interdiff_executable"; +END + + +my $diff_binaries = `which diff`; +if ($diff_binaries =~ /no diff/) { + # If which didn't find it, set to blank + $diff_binaries = ""; +} else { + $diff_binaries =~ s:/diff\n$::; +} + +LocalVar('diffpath', <<"END"); + +# +# The interdiff feature needs diff, so we have to have that path. +# Please specify only the directory name, with no trailing slash. +\$diffpath = "$diff_binaries"; +END + + LocalVar('create_htaccess', <<'END'); # # If you are using Apache for your web server, Bugzilla can create .htaccess -- cgit v1.2.3-24-g4f1b