Skip to content

Commit 27e88de

Browse files
committed
Use /usr/bin/env for increased portability.
1 parent 929f136 commit 27e88de

28 files changed

+28
-28
lines changed

md2man

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# This script takes a manpage written in markdown and turns it into an html web
44
# page and a nroff man page. The input file must have the name of the program

packaging/branch-from-patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3 -B
1+
#!/usr/bin/env python3 -B
22

33
# This script turns one or more diff files in the patches dir (which is
44
# expected to be a checkout of the rsync-patches git repo) into a branch

packaging/cull_options

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This script outputs some perl code that parses all possible options
33
# that the code in options.c might send to the server. This perl code
44
# is included in the rrsync script.

packaging/md2html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# Copyright (C) 2020 Wayne Davison
44
#

packaging/nightly-rsync

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3 -B
1+
#!/usr/bin/env python3 -B
22

33
# This script expects the directory ~/samba-rsync-ftp to exist and to be a
44
# copy of the /home/ftp/pub/rsync dir on samba.org. It also requires a

packaging/patch-update

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3 -B
1+
#!/usr/bin/env python3 -B
22

33
# This script is used to turn one or more of the "patch/BASE/*" branches
44
# into one or more diffs in the "patches" directory. Pass the option

packaging/release-rsync

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3 -B
1+
#!/usr/bin/env python3 -B
22

33
# This script expects the directory ~/samba-rsync-ftp to exist and to be a
44
# copy of the /home/ftp/pub/rsync dir on samba.org. When the script is done,

packaging/var-checker

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3 -B
1+
#!/usr/bin/env python3 -B
22

33
# This script checks the *.c files for extraneous "extern" variables,
44
# for vars that are defined but not used, and for inconsistent array

packaging/year-tweak

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
# This uses the output from "support/git-set-file-times --list" to discern
44
# the last-modified year of each *.c & *.h file and updates the copyright

rsync-ssl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This script uses openssl, gnutls, or stunnel to secure an rsync daemon connection.
44

support/atomic-rsync

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
#
33
# This script lets you update a hierarchy of files in an atomic way by
44
# first creating a new hierarchy using rsync's --link-dest option, and

support/cvs2includes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
#
33
# This script finds all CVS/Entries files in the current directory and below
44
# and creates a local .cvsinclude file with non-inherited rules including each

support/deny-rsync

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Send an error message via the rsync-protocol to a non-daemon client rsync.
33
#
44
# Usage: deny-rsync "message"

support/file-attr-restore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This script will parse the output of "find ARG [ARG...] -ls" and
33
# apply (at your discretion) the permissions, owner, and group info
44
# it reads onto any existing files and dirs (it doesn't try to affect

support/files-to-excludes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This script takes an input of filenames and outputs a set of
33
# include/exclude directives that can be used by rsync to copy
44
# just the indicated files using an --exclude-from=FILE option.

support/git-set-file-times

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python3
1+
#!/usr/bin/env python3
22

33
import os, re, argparse, subprocess
44
from datetime import datetime

support/instant-rsyncd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# instant-rsyncd lets you quickly set up and start a simple, unprivileged rsync
44
# daemon with a single module in the current directory. I've found it

support/logfilter

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# Filter the rsync daemon log messages by module name. The log file can be
33
# in either syslog format or rsync's own log-file format. Note that the
44
# MODULE_NAME parameter is used in a regular-expression match in order to

support/lsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This script can be used as a "remote shell" command that is only
33
# capable of pretending to connect to "localhost". This is useful
44
# for testing or for running a local copy where the sender and the

support/mapfrom

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This helper script makes it easy to use a passwd or group file to map
33
# values in a LOCAL transfer. For instance, if you mount a backup that
44
# does not have the same passwd setup as the local machine, you can do

support/mapto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This helper script makes it easy to use a passwd or group file to map
33
# values in a LOCAL transfer. For instance, if you mount a backup that
44
# does not have the same passwd setup as the local machine, you can do

support/mnt-excl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This script takes a command-line arg of a source directory
33
# that will be passed to rsync, and generates a set of excludes
44
# that will exclude all mount points from the list. This is

support/munge-symlinks

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# This script will either prefix all symlink values with the string
33
# "/rsyncd-munged/" or remove that prefix.
44

support/rrsync

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
# Name: /usr/local/bin/rrsync (should also have a symlink in /usr/bin)
33
# Purpose: Restricts rsync to subdirectory declared in .ssh/authorized_keys
44
# Author: Joe Smith <js-cgi@inwap.com> 30-Sep-2004

support/rsync-no-vanished

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
IGNOREEXIT=24
44
IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before they could be transferred)'

support/rsync-slash-strip

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# This script can be used as an rsync command-line filter that strips a single
33
# trailing slash from each arg. That treats "src/" the same as "src", thus
44
# you need to use "src/." or "src//" for just the contents of the "src" dir.

support/rsyncstats

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl
1+
#!/usr/bin/env perl
22
#
33
# This script parses the default logfile format produced by rsync when running
44
# as a daemon with transfer logging enabled. It also parses a slightly tweaked

testhelp/maketree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/python2.2
1+
#!/usr/bin/env python2
22

33
# Copyright (C) 2002 by Martin Pool <mbp@samba.org>
44

0 commit comments

Comments
 (0)