Remove an unreferenced local variable in Digest-MD5
[p5sagit/p5-mst-13.2.git] / ext / Devel / PPPort / ppport_h.PL
index 4031981..f8ed365 100644 (file)
@@ -1,5 +1,26 @@
-my $pmfile = 'PPPort.pm';
+################################################################################
+#
+#  ppport_h.PL -- generate ppport.h
+#
+################################################################################
+#
+#  $Revision: 4 $
+#  $Author: mhx $
+#  $Date: 2005/01/31 08:10:54 +0100 $
+#
+################################################################################
+#
+#  Version 3.x, Copyright (C) 2004-2005, Marcus Holland-Moritz.
+#  Version 2.x, Copyright (C) 2001, Paul Marquess.
+#  Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
+#
+#  This program is free software; you can redistribute it and/or
+#  modify it under the same terms as Perl itself.
+#
+################################################################################
+
 package Devel::PPPort; 
 sub bootstrap {}; 
-require qq[$pmfile]; 
-WriteFile(qq[ppport.h]);
+require "PPPort.pm";
+rename 'ppport.h', 'ppport.old' if -f 'ppport.h';
+unlink "ppport.old" if WriteFile("ppport.h") && -f 'ppport.h';