X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=test%2Fpatchexim;h=9659ba133cecd443e3ef5ac101d7dc544c3f5979;hb=4c04137d73637107669e02b21f890387aaa2ef34;hp=d3f39bc73f13e2248c20b356775eed29f8c5d098;hpb=ce905061fc5b4fe76ea83f6074d2445f61c67d40;p=exim.git diff --git a/test/patchexim b/test/patchexim index d3f39bc73..9659ba133 100755 --- a/test/patchexim +++ b/test/patchexim @@ -1,4 +1,7 @@ -#! /usr/bin/perl -w +#! /usr/bin/env perl + +use strict; +use warnings; ############################################################################### # This is an auxiliary script that is part of the Exim test suite. It must be # @@ -10,19 +13,19 @@ # be copied. The script must be run in the correct current directory. # ############################################################################### -open(IN, "$ARGV[0]") || die "** Failed to open $ARGV[0]: $!\n"; -open(OUT, ">eximdir/exim") || die "** Failed to open eximdir/exim: $!\n"; +open(IN, $ARGV[0]) || die "** Failed to open $ARGV[0]: $!\n"; +open(OUT, '>eximdir/exim') || die "** Failed to open eximdir/exim: $!\n"; while() { s/>>>running<<>>/; - s/(\d+\.\d+(?:\.\d+)?([_-]RC\d+|[_-]dev)?(?:[0-9a-fA-F-]*)(?:-XX)?\0<>)/"x.yz\0" . ("*" x (length($1) - 5))/e; + s/(\d+\.\d+(?:[_.]\d+)?([_-]RC\d+|[_-]dev)?(?:[0-9a-fA-F-]*)(?:-XX)?\0<>)/"x.yz\0" . ("*" x (length($1) - 5))/e; print OUT; } close(IN); close(OUT); -chmod 04755, "eximdir/exim"; +chmod 04755, 'eximdir/exim'; # End of patchexim script