Normalize #! lines on all plugins

find . -type f | xargs -n1 perl -pi.bak -0777 -e '$want = "#!perl -Tw"; s/\A#!.*\n/$want\n/; s/\A([^#])/$want\n\1/s'
This commit is contained in:
Robert 2012-04-28 20:41:31 -07:00
parent 38c74352d1
commit 61de599c1b
65 changed files with 65 additions and 43 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!perl -w #!perl -Tw
use Qpsmtpd::Plugin::Async::DNSBLBase; use Qpsmtpd::Plugin::Async::DNSBLBase;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
use Qpsmtpd::Plugin::Async::DNSBLBase; use Qpsmtpd::Plugin::Async::DNSBLBase;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
use Qpsmtpd::DSN; use Qpsmtpd::DSN;
use ParaDNS; use ParaDNS;

View File

@ -1,4 +1,4 @@
#!perl -w #!perl -Tw
use Qpsmtpd::Plugin::Async::DNSBLBase; use Qpsmtpd::Plugin::Async::DNSBLBase;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
use Qpsmtpd::Plugin::Async::DNSBLBase; use Qpsmtpd::Plugin::Async::DNSBLBase;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -Tw #!perl -Tw
sub register { sub register {
my ( $self, $qp, @args ) = @_; my ( $self, $qp, @args ) = @_;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
use strict; use strict;
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
use strict; use strict;
use warnings; use warnings;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
# #
# This plugin doesn't actually check anything and will fail any # This plugin doesn't actually check anything and will fail any
# user no matter what they type. It is strictly a proof of concept for # user no matter what they type. It is strictly a proof of concept for

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
=pod =pod

View File

@ -1,4 +1,4 @@
#! perl #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=pod =pod
=head1 SYNOPSIS =head1 SYNOPSIS

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
check_earlytalker - Check that the client doesn't talk before we send the SMTP banner check_earlytalker - Check that the client doesn't talk before we send the SMTP banner

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=pod =pod
=head1 SYNOPSIS =head1 SYNOPSIS

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
check_spamhelo - Check a HELO message delivered from a connecting host. check_spamhelo - Check a HELO message delivered from a connecting host.

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
dns_whitelist_soft - dns-based whitelist override for other qpsmtpd plugins dns_whitelist_soft - dns-based whitelist override for other qpsmtpd plugins

View File

@ -1,4 +1,4 @@
#!perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
sub init { sub init {
my ($self, $qp, %args) = @_; my ($self, $qp, %args) = @_;

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
denysoft_greylist denysoft_greylist

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
http_config http_config

View File

@ -1,4 +1,4 @@
#!perl #!perl -Tw
# Adaptive logging plugin - logs at one level for successful messages and # Adaptive logging plugin - logs at one level for successful messages and
# one level for DENY'd messages # one level for DENY'd messages

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
# this is a simple 'connection_id' plugin like the default builtin logging # this is a simple 'connection_id' plugin like the default builtin logging
# #
# It demonstrates that a logging plugin can call ->log itself as well # It demonstrates that a logging plugin can call ->log itself as well

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
# this is a simple 'drop packets on the floor' plugin # this is a simple 'drop packets on the floor' plugin
sub hook_logging { sub hook_logging {

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
# this is a simple 'transaction_id' plugin like the default builtin logging # this is a simple 'transaction_id' plugin like the default builtin logging
# #
# It demonstrates that a logging plugin can call ->log itself as well # It demonstrates that a logging plugin can call ->log itself as well

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl #!perl -Tw
# this is a simple 'warn' plugin like the default builtin logging # this is a simple 'warn' plugin like the default builtin logging
# #
# It demonstrates that a logging plugin can call ->log itself as well # It demonstrates that a logging plugin can call ->log itself as well

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
milter milter

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
exim-bsmtp exim-bsmtp

View File

@ -1,4 +1,4 @@
#!perl #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
smtp-forward smtp-forward

View File

@ -1,3 +1,4 @@
#!perl -Tw
sub hook_quit { sub hook_quit {
my $qp = shift->qp; my $qp = shift->qp;

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
random_error random_error

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME
rcpt_regexp - check recipients against a list of regular expressions rcpt_regexp - check recipients against a list of regular expressions

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
use Qpsmtpd::DSN; use Qpsmtpd::DSN;
use Net::DNS qw(mx); use Net::DNS qw(mx);
use Socket; use Socket;

View File

@ -1,4 +1,4 @@
#!perl -w #!perl -Tw
sub register { sub register {
my ($self, $qp, $denial ) = @_; my ($self, $qp, $denial ) = @_;

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
# Very basic script to create TLS certificates for qpsmtpd # Very basic script to create TLS certificates for qpsmtpd
use File::Temp qw/ tempfile tempdir /; use File::Temp qw/ tempfile tempdir /;
use Getopt::Long; use Getopt::Long;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME
aveclient aveclient

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -Tw #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -Tw #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
# H+B EDV-AV plugin. # H+B EDV-AV plugin.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
# Kasperski-AV plugin. # Kasperski-AV plugin.
=head1 NAME =head1 NAME

View File

@ -1,3 +1,4 @@
#!perl -Tw
sub hook_data_post { sub hook_data_post {
my ($self, $transaction) = @_; my ($self, $transaction) = @_;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
use IO::Socket; use IO::Socket;
sub register { sub register {

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -w #!perl -Tw
=head1 NAME =head1 NAME