Skip to content

Commit

Permalink
Use "use warnings" rather than -w on the #! line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Davison committed Jan 13, 2009
1 parent 8051aa5 commit 01e293f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packaging/patch-update
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
# This script is used to turn one or more of the "patch/*" branches
# into one or more diffs in the "patches" directory. Pass the option
# --gen if you want generated files in the diffs. Pass the name of
# one or more diffs if you want to just update a subset of all the
# diffs.

use strict;
use warnings;
use Getopt::Long;

my $patches_dir = 'patches';
Expand Down
3 changes: 2 additions & 1 deletion packaging/release-rsync
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
use strict;
use warnings;

# This script expects the directory ~/samba-rsync-ftp to exist and to be a
# copy of the /home/ftp/pub/rsync dir on samba.org. When the script is done,
Expand Down
3 changes: 2 additions & 1 deletion packaging/var-checker
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
# This script checks the *.c files for extraneous "extern" variables,
# for vars that are defined but not used, and for inconsistent array
# sizes. Run it from inside the main rsync directory.

use strict;
use warnings;

my %add_syscall_c = map { $_ => 1 } qw( t_stub.c t_unsafe.c tls.c trimslash.c );
my %add_compat_c = map { $_ => 1 } qw( t_stub.c tls.c trimslash.c wildtest.c );
Expand Down
3 changes: 2 additions & 1 deletion support/git-set-file-times
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
use strict;
use warnings;

# Sets mtime and atime of files to the latest commit time in git.
#
Expand Down
4 changes: 3 additions & 1 deletion support/instant-rsyncd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash

# instant-rsyncd lets you quickly set up and start a simple, unprivileged rsync
# daemon with a single module in the current directory. I've found it
Expand All @@ -12,6 +12,8 @@
# and once to log in to test the daemon.
# -- Matt McCutchen <matt@mattmccutchen.net>

set -e

dir="$(pwd)"

echo
Expand Down
3 changes: 2 additions & 1 deletion support/mnt-excl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
# This script takes a command-line arg of a source directory
# that will be passed to rsync, and generates a set of excludes
# that will exclude all mount points from the list. This is
Expand All @@ -25,6 +25,7 @@
# awk '{print $2}' /proc/mounts | rsync -f 'merge,/- -' host:/dir /dest/

use strict;
use warnings;
use Cwd 'abs_path';

my $file = '/proc/mounts';
Expand Down

0 comments on commit 01e293f

Please sign in to comment.