use Config;
+use File::Copy;
do 'FCGI.cfg' or die "no FCGI.cfg";
print "Generating FCGI.pm\n";
print OUT <<'EOP';
-# $Id: FCGI.PL,v 1.30 2001/09/20 12:00:23 skimo Exp $
+# $Id: FCGI.PL,v 1.31 2001/09/21 15:51:29 skimo Exp $
package FCGI;
);
-$VERSION = '0.61';
-
EOP
+{
+ open VERSION, "version.pm";
+ local $/ = undef;
+ print OUT <VERSION>;
+ close VERSION;
+}
+
print OUT "bootstrap FCGI;\n" unless ($pure);
print OUT <<'EOP' if ($pure);
-# $Id: Makefile.PL,v 1.23 2001/09/20 12:26:37 skimo Exp $
+# $Id: Makefile.PL,v 1.24 2001/09/21 15:51:30 skimo Exp $
use ExtUtils::MakeMaker;
use IO::File;
@h1 = qw(fastcgi.h fcgiapp.h fcgimisc.h fcgios.h);
@h = (@h1, 'fcgi_config.h');
@o = qw(FCGI.o);
-@dist1 = qw(LICENSE.TERMS configure configure.in install.sh);
+@dist1 = qw(LICENSE.TERMS configure configure.in install.sh missing);
@dist2 = qw(fcgiapp.c os_unix.c os_win32.c);
@dist3 = (@h1, qw(fcgi_config.h.in fcgi_config_x86.h));
$mm = MM->new({
'NAME' => 'FCGI',
- 'VERSION_FROM' => 'FCGI.PL',
+ 'VERSION_FROM' => 'version.pm',
'dist' => { 'COMPRESS' => 'gzip -9f',
'SUFFIX' => 'gz',
'PREOP' => '$(CP) '.join(' ',