- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 28 Apr 2009 20:33:46 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/perl/modules/W3C/LinkChecker/bin In directory hutz:/tmp/cvs-serv5461 Modified Files: checklink.pod Log Message: --masquerade doc improvements, thanks to C. M. Sperberg-McQueen. Index: checklink.pod =================================================================== RCS file: /sources/public/perl/modules/W3C/LinkChecker/bin/checklink.pod,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- checklink.pod 28 Apr 2009 20:17:19 -0000 1.23 +++ checklink.pod 28 Apr 2009 20:33:44 -0000 1.24 @@ -132,12 +132,18 @@ in the configuration file. See the C<Trusted> entry in the configuration file description below for more information. -=item B<--masquerade> I<"local remote"> +=item B<--masquerade> I<"surrogate-prefix real-prefix"> -Masquerade local dir as a remote URI. For example, the following results in -/my/local/dir/ being "mapped" to http://some/remote/uri/ +Perform a simple string substitution: URIs which begin with the +string C<real-prefix> are rewritten using the C<surrogate-prefix> +before being dereferenced. Useful for making a local +directory masquerade as a remote one. For example: - --masquerade "/my/local/dir http://some/remote/uri/" + --masquerade "file:///my/local/dir/ http://example.com/x/y/z/" + +If the document being checked contains a link to +http://example.com/x/y/z/foo.html, then the local file system will be +checked for file:///my/local/dir/foo.html. B<--masquerade> takes a single argument consisting of two URIs, separated by whitespace. The quote marks are not part of the
Received on Tuesday, 28 April 2009 20:33:58 UTC