W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Autogenerate a dummy *.pm for CPAN indexing purposes.

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:07 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1it-0005qW-Kj@blinky.w3.org>
changeset:   165:e10e214b4753
user:        ville
date:        Thu Apr 19 21:41:55 2007 +0000
files:       MANIFEST META.yml Makefile.PL t/00compile.t
description:
Autogenerate a dummy *.pm for CPAN indexing purposes.


diff -r 42e6f4bd8583 -r e10e214b4753 MANIFEST
--- a/MANIFEST	Thu Apr 19 21:35:55 2007 +0000
+++ b/MANIFEST	Thu Apr 19 21:41:55 2007 +0000
@@ -14,4 +14,5 @@
 docs/qa-small.png
 docs/valid-xhtml10.png
 docs/w3c_home.png
+lib/W3C/LinkChecker.pm  Dummy *.pm for CPAN indexing purposes
 t/00compile.t
diff -r 42e6f4bd8583 -r e10e214b4753 META.yml
--- a/META.yml	Thu Apr 19 21:35:55 2007 +0000
+++ b/META.yml	Thu Apr 19 21:41:55 2007 +0000
@@ -12,7 +12,7 @@
     LWP:                           5.66
     Net::IP:                       0
     Term::ReadKey:                 2
-    Test::Simple:                  0
+    Test::More:                    0
     Time::HiRes:                   0
     URI:                           0
 
diff -r 42e6f4bd8583 -r e10e214b4753 Makefile.PL
--- a/Makefile.PL	Thu Apr 19 21:35:55 2007 +0000
+++ b/Makefile.PL	Thu Apr 19 21:41:55 2007 +0000
@@ -30,9 +30,11 @@
                      Time::HiRes     => 0,
                      URI             => 0,
                      # For the test suite:
-                     Test::Simple    => 0,
+                     Test::More      => 0,
                      File::Spec      => 0,
                    },
+  PM            => { 'lib/W3C/LinkChecker.pm' =>
+                     '$(INST_LIB)/W3C/LinkChecker.pm' },
   EXE_FILES     => [ 'bin/checklink' ],
   MAN1PODS      => { 'bin/checklink.pod' =>
                      '$(INST_MAN1DIR)/checklink.$(MAN1EXT)',
@@ -49,5 +51,14 @@
 	  --ignore ChangeLog --ignore cvsignore --ignore SIGNATURE \
 	  --ignore Makefile.PL --ignore META.yml --ignore MANIFEST \
 	  --ignore NEWS
+
+lib/W3C/LinkChecker.pm: Makefile.PL bin/checklink
+	$(MKPATH) lib/W3C
+	$(ECHO) "# Dummy module for CPAN indexing purposes."  > $@
+	$(ECHO) "package $(NAME);"                           >> $@
+	$(ECHO) "use strict;"                                >> $@
+	$(ECHO) "use vars qw(\$$VERSION);"                   >> $@
+	$(ECHO) "\$$VERSION = \"$(VERSION)\";"               >> $@
+	$(ECHO) "1;"                                         >> $@
 MAKE_FRAG
 }
diff -r 42e6f4bd8583 -r e10e214b4753 t/00compile.t
--- a/t/00compile.t	Thu Apr 19 21:35:55 2007 +0000
+++ b/t/00compile.t	Thu Apr 19 21:41:55 2007 +0000
@@ -1,4 +1,5 @@
-use Test::Simple tests => 1;                                     # -*- perl -*-
+use Test::More tests => 2;                                       # -*- perl -*-
 use File::Spec ();
 
 ok(system($^X, '-wTc', File::Spec->catfile('bin', 'checklink')) == 0);
+require_ok('W3C::LinkChecker');
Received on Thursday, 5 August 2010 15:09:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:44 UTC