link-checker commit: New configuration parameter (Doc_URI) to aid local doc installations.

changeset:   49:eb2bb5c13d53
user:        ville
date:        Fri Apr 09 16:26:52 2004 +0000
files:       bin/checklink etc/checklink.conf
description:
New configuration parameter (Doc_URI) to aid local doc installations.


diff -r fd2709762962 -r eb2bb5c13d53 bin/checklink
--- a/bin/checklink	Fri Apr 09 11:37:51 2004 +0000
+++ b/bin/checklink	Fri Apr 09 16:26:52 2004 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2004 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 3.25 2004-04-08 17:14:39 ville Exp $
+# $Id: checklink,v 3.26 2004-04-09 16:26:51 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -112,7 +112,7 @@
   $PACKAGE       = 'W3C Link Checker';
   $PROGRAM       = 'W3C-checklink';
   $VERSION       = '3.9.3-dev';
-  my ($cvsver)   = q$Revision: 3.25 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver)   = q$Revision: 3.26 $ =~ /(\d+[\d\.]*\.\d+)/;
   $REVISION      = sprintf('version %s [%s] (c) 1999-2004 W3C',
                            $VERSION, $cvsver);
   $AGENT         = sprintf('%s/%s [%s] %s',
@@ -162,6 +162,8 @@
     'http://validator.w3.org/check?uri=%s';
   $Cfg{CSS_Validator_URI} ||=
     'http://jigsaw.w3.org/css-validator/validator?uri=%s';
+  $Cfg{Doc_URI} ||=
+    'http://www.w3.org/2000/07/checklink';
 
   # Trusted environment variables that need laundering in taint mode.
   foreach (qw(NNTPSERVER NEWSHOST)) {
@@ -496,7 +498,7 @@
 configuration file to use.  See details in the full manual page, it can
 be displayed with: perldoc checklink
 
-More documentation at: http://www.w3.org/2000/07/checklink
+More documentation at: $Cfg{Doc_URI}
 Please send bug reports and comments to the www-validator mailing list:
   www-validator\@w3.org (with 'checklink' in the subject)
   Archives are at: http://lists.w3.org/Archives/Public/www-validator/
@@ -2072,17 +2074,17 @@
 sub html_footer ()
 {
   printf("<p>%s</p>\n", &global_stats()) if ($doc_count > 0 && !$Opts{Quiet});
-  print <<EOF;
+  printf(<<'EOF', $PACKAGE, $REVISION, &encode($Cfg{Doc_URI}));
 <div>
 <address>
-$PACKAGE $REVISION,
+%s %s,
 by <a href="http://www.w3.org/People/Hugo/">Hugo Haas</a> and others.<br>
 Please send bug reports, suggestions and comments to the
-<a href="mailto:www-validator\@w3.org?subject=checklink%3A%20">www-validator
+<a href="mailto:www-validator@w3.org?subject=checklink%3A%20">www-validator
 mailing list</a>
 (<a href="http://lists.w3.org/Archives/Public/www-validator/">archives</a>).
 <br>
-Check out the <a href="http://www.w3.org/2000/07/checklink">documentation</a>.
+Check out the <a href="%s">documentation</a>.
 Download the
 <a href="http://search.cpan.org/dist/W3C-LinkChecker/">source code</a>.
 </address>
diff -r fd2709762962 -r eb2bb5c13d53 etc/checklink.conf
--- a/etc/checklink.conf	Fri Apr 09 11:37:51 2004 +0000
+++ b/etc/checklink.conf	Fri Apr 09 16:26:52 2004 +0000
@@ -1,6 +1,6 @@
 #
 # Configuration file for the W3C Link Checker
-# $Id: checklink.conf,v 1.2 2004-03-23 20:09:27 ville Exp $
+# $Id: checklink.conf,v 1.3 2004-04-09 16:26:52 ville Exp $
 #
 # See Config::General(3) for the syntax; 'SplitPolicy' is 'equalsign' here.
 #
@@ -38,5 +38,15 @@
 # checker results view in the online/CGI version.
 #
 # Defaults:
-# Markup_Validator_URI: http://validator.w3.org/check?uri=%s
-# CSS_Validator_URI: http://jigsaw.w3.org/css-validator/validator?uri=%s
+# Markup_Validator_URI = http://validator.w3.org/check?uri=%s
+# CSS_Validator_URI = http://jigsaw.w3.org/css-validator/validator?uri=%s
+
+
+#
+# Doc_URI is the URI to the link checker documentation, shown in the
+# results report in CGI mode, and the usage message in command line mode.
+# If you have installed the documentation locally somewhere, you may wish to
+# change this to point to that version.
+#
+# Default:
+# Doc_URI = http://www.w3.org/2000/07/checklink

Received on Thursday, 5 August 2010 14:47:07 UTC