summaryrefslogtreecommitdiff
path: root/minimod.pl
diff options
context:
space:
mode:
Diffstat (limited to 'minimod.pl')
-rwxr-xr-xminimod.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/minimod.pl b/minimod.pl
index b9b70715b2..82760ee63d 100755
--- a/minimod.pl
+++ b/minimod.pl
@@ -40,7 +40,7 @@ $tail=<<'EOF!TAIL';
END
while (<MINI>) {
- print;
+ print unless /dXSUB_SYS/;
}
close MINI;
@@ -65,7 +65,9 @@ sub writemain{
my ($tail1,$tail2) = ( $tail =~ /\A(.*\n)(\s*\}.*)\Z/s );
print $tail1;
- print " char *file = __FILE__;\n";
+ print "\tchar *file = __FILE__;\n";
+ print "\tdXSUB_SYS;\n" if $] > 5.002;
+
foreach $_ (@exts){
my($pname) = canon('/', $_);
my($mname, $cname, $ccode);