Patch up holes in realclean target
[p5sagit/p5-mst-13.2.git] / win32 / config_h.PL
index 26a2430..16e467e 100644 (file)
@@ -12,7 +12,8 @@ while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/)
   shift(@ARGV);
  }
 my $patchlevel = $opt{INST_VER};
-$patchlevel = s|^[\\/]||;
+$patchlevel =~ s|^[\\/]||;
+$patchlevel =~ s|~VERSION~|$]|g;
 $patchlevel ||= $];
 $patchlevel = qq["$patchlevel"];
 
@@ -59,7 +60,6 @@ while (<SH>)
    }
   print H;
  }
-print H "#include <win32.h>\n";
 close(H);
 close(SH);