5 my @paths = split ' ', $ENV{"ALL_INPUTS"};
7 open IN
, "<$ARGV[0]" or die;
8 open OUT
, ">$ARGV[0].tmp" or die;
11 # !!! should use a real XML library here.
12 if (!/<dllmap dll="(.*)" target="(.*)"\/>/) {
19 foreach my $path (@paths) {
20 my $fullPath = "$path/lib/$target";
27 print OUT
" <dllmap dll=\"$dll\" target=\"$target\"/>\n";
32 rename "$ARGV[0].tmp", "$ARGV[0]" or die "cannot rename $ARGV[0]";