X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=blobdiff_plain;f=test%2Fpatchexim;h=7bd84d49d2bf5c82a9aaed7b5aada4f40825c04e;hp=d3f39bc73f13e2248c20b356775eed29f8c5d098;hb=28fb7042c4d99225f3968d6555faef598db2e9d0;hpb=ce905061fc5b4fe76ea83f6074d2445f61c67d40;ds=sidebyside diff --git a/test/patchexim b/test/patchexim index d3f39bc73..7bd84d49d 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