1 # This will put installed perl files into some other location
2 # Note that we cannot put hashbang to be extproc to make Configure work.
8 $nowarn = 1, $dir = shift if $dir eq '-n';
10 die <<EOU unless defined $dir and -d $dir;
11 usage: $^X $0 [-n] directory-to-install
12 -n do not check whether the directory is not on path
15 @path = split /;/, $ENV{PATH};
16 $idir = $Config{installbin};
19 foreach $file (<$idir/*>) {
20 next if $file =~ /\.exe/i;
22 $base =~ s/\.$//; # just in case...
25 print "Processing $file => $dir\\$base.cmd\n";
26 system 'cmd.exe', '/c', "echo extproc perl -S>$dir\\$base.cmd";
27 system 'cmd.exe', '/c', "type $file >> $dir\\$base.cmd";