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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!perl -Tw
#
# 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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#!perl -Tw
=head1 NAME
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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#!perl -Tw
=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
#
# 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
sub hook_logging {

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!perl -Tw
=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
#
# 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
#
# It demonstrates that a logging plugin can call ->log itself as well

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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