소스 검색

Clean up perl shebang line

Use “use warnings” instead of passing “-w”. Remove “--” parameters.
Remove shebangs from perl modules. Remove spaces after “#!”.
Guillem Jover 16 년 전
부모
커밋
4f7ad34861

+ 3 - 1
dselect/methods/ftp/install

@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # -*-perl-*-
 #
 # Copyright © 1996 Andy Guy <awpguy@acs.ucalgary.ca>
@@ -8,6 +8,8 @@
 # This program has been distributed under the terms of the GNU GPL.
 
 use strict;
+use warnings;
+
 use vars qw(%config $ftp);
 #use diagnostics;
 

+ 3 - 1
dselect/methods/ftp/setup

@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # -*-perl-*-
 #
 # Copyright © 1996 Andy Guy <awpguy@acs.ucalgary.ca>
@@ -8,6 +8,8 @@
 # This program has been distributed under the terms of the GNU GPL.
 
 use strict;
+use warnings;
+
 use vars qw(%config);
 #use diagnostics;
 

+ 3 - 1
dselect/methods/ftp/update

@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # -*-perl-*-
 #
 # Copyright © 1996 Andy Guy <awpguy@acs.ucalgary.ca>
@@ -8,6 +8,8 @@
 # This program has been distributed under the terms of the GNU GPL.
 
 use strict;
+use warnings;
+
 #use diagnostics;
 
 use lib '/usr/lib/perl5/Debian';

+ 1 - 1
dselect/mkcurkeys.pl

@@ -1,4 +1,4 @@
-#!/usr/bin/perl --
+#!/usr/bin/perl
 #
 # dselect - Debian package maintenance user interface
 # mkcurkeys.pl - generate strings mapping key names to ncurses numbers

+ 0 - 1
scripts/Dpkg/Gettext.pm

@@ -1,4 +1,3 @@
-#!/usr/bin/perl -w
 # Copied from /usr/share/perl5/Debconf/Gettext.pm
 #
 # Redistribution and use in source and binary forms, with or without

+ 0 - 1
scripts/Dpkg/Source/Package/V3/bzr.pm

@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 #
 # bzr support for dpkg-source
 #

+ 0 - 1
scripts/Dpkg/Source/Package/V3/git.pm

@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 #
 # git support for dpkg-source
 #

+ 1 - 1
scripts/dpkg-architecture.pl

@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#!/usr/bin/perl
 #
 # dpkg-architecture
 #

+ 1 - 1
scripts/dpkg-divert.pl

@@ -1,4 +1,4 @@
-#!/usr/bin/perl --
+#!/usr/bin/perl
 #
 # dpkg-divert
 #

+ 1 - 1
scripts/dpkg-shlibdeps.pl

@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #
 # dpkg-shlibdeps
 #

+ 1 - 1
scripts/update-alternatives.pl

@@ -1,4 +1,4 @@
-#!/usr/bin/perl --
+#!/usr/bin/perl
 #
 # update-alternatives
 #