X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fconvert4r4.src;h=47987fc8f3cc50a2f6fa7c3c21af45c0f86cb9ef;hb=5455f54826fe81cddb761ca943ea0b1ef5836dbc;hp=4455fb7fe2ce5def158a09e0b44d2fb6524abd0b;hpb=3634fc257bd0667daef14d72005cd87c735bbb24;p=exim.git diff --git a/src/src/convert4r4.src b/src/src/convert4r4.src index 4455fb7fe..47987fc8f 100755 --- a/src/src/convert4r4.src +++ b/src/src/convert4r4.src @@ -1,4 +1,4 @@ -#! PERL_COMMAND -w +#! PERL_COMMAND # This is a Perl script that reads an Exim run-time configuration file for # Exim 3. It makes what changes it can for Exim 4, and also output commentary @@ -6,6 +6,20 @@ # It is assumed that the input is a valid Exim 3 configuration file. +use warnings; +BEGIN { pop @INC if $INC[-1] eq '.' }; + +use Getopt::Long; +use File::Basename; + +GetOptions( + 'version' => sub { + print basename($0) . ": $0\n", + "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n", + "perl(runtime): $^V\n"; + exit 0; + }, +); # These are lists of main options which are abolished in Exim 4. # The first contains options that are used to construct new options.