#!/usr/bin/perl -w use strict; require 5.006 ; use ExtUtils::MakeMaker ; use Config ; use FindBin ; use File::Path ; use File::Copy ; no warnings ; BEGIN { eval { require File::Spec::Functions ; File::Spec::Functions->import() } ; if ($@) { *catfile = sub { return "$_[0]/$_[1]" } } } ######## # VARS # ######## my $exe = $Config{_exe}; my $rm = $^O eq 'MSWin32' ? '$(PERL) -MExtUtils::Command -e rm_f' : 'rm'; my $mv = $^O eq 'MSWin32' ? '$(PERL) -MExtUtils::Command -e mv' : 'mv'; my $rm_exe = "-\$(RM) *$exe" if $exe ; ################# # WRITEMAKEFILE # ################# if ( $ARGV[0] =~ /releasedir/i ) { releasedir() ; exit; } print "Writing Makefile for LibHTTP-Perl\n"; open OUT, "> Makefile" or die "open 'Makefile': $!"; ################################################################################ print OUT <