[Codestriker-commits] CVS update: codestriker/bin install.pl
Brought to you by:
sits
|
From: <si...@us...> - 2008-06-17 12:00:55
|
User: sits
Date: 08/06/17 05:00:54
Modified: bin install.pl
Log:
Include warning if highlighter is not configured in the codestriker.conf file with an appropriate message.
Index: install.pl
===================================================================
RCS file: /cvsroot/codestriker/codestriker/bin/install.pl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- install.pl 22 Feb 2008 00:32:05 -0000 1.17
+++ install.pl 17 Jun 2008 12:00:54 -0000 1.18
@@ -341,6 +341,13 @@
}
}
+# Issue a warning to the user if the highlight binary is not available.
+if (! (defined $Codestriker::highlighter) || $Codestriker::highlighter eq '') {
+ print STDERR "\nWARNING: \$highlighter variable is not set in codestriker.conf.\n";
+ print STDERR "No syntax highlighting will be performed.\n";
+ print STDERR "Download from http://www.andre-simon.de/ and\n";
+ print STDERR " set \$highlighter to location of executable.\n\n";
+}
# Obtain a database connection.
my $dbh = $database->get_connection();
|