]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Use /usr/bin/env for increased portability.
authorWayne Davison <wayne@opencoder.net>
Wed, 17 Jun 2020 01:02:45 +0000 (18:02 -0700)
committerWayne Davison <wayne@opencoder.net>
Wed, 17 Jun 2020 01:27:48 +0000 (18:27 -0700)
28 files changed:
md2man
packaging/branch-from-patch
packaging/cull_options
packaging/md2html
packaging/nightly-rsync
packaging/patch-update
packaging/release-rsync
packaging/var-checker
packaging/year-tweak
rsync-ssl
support/atomic-rsync
support/cvs2includes
support/deny-rsync
support/file-attr-restore
support/files-to-excludes
support/git-set-file-times
support/instant-rsyncd
support/logfilter
support/lsh
support/mapfrom
support/mapto
support/mnt-excl
support/munge-symlinks
support/rrsync
support/rsync-no-vanished
support/rsync-slash-strip
support/rsyncstats
testhelp/maketree.py

diff --git a/md2man b/md2man
index a459e36c06f06844e9fcd87215a20727654e307a..7dbb1f318c78990d640596c7d29e919441b95a75 100755 (executable)
--- a/md2man
+++ b/md2man
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 # This script takes a manpage written in markdown and turns it into an html web
 # page and a nroff man page.  The input file must have the name of the program
index c4982d039a9f8bb1262d10f5e76675a14aac60b8..91b9466bb755090bf60ddd9ce01b915e571f9f33 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3 -B
+#!/usr/bin/env python3 -B
 
 # This script turns one or more diff files in the patches dir (which is
 # expected to be a checkout of the rsync-patches git repo) into a branch
index c32a84dd6371622f3c89f89de7b56359d94feee2..7588002be1f90d2c461f4ca8781f3ec686b6d530 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This script outputs some perl code that parses all possible options
 # that the code in options.c might send to the server.  This perl code
 # is included in the rrsync script.
index 6475434c8c9a611798a9a85bfcb63d51c84a5d16..e4ee226ab509db920a6bc318a8816384166c6d15 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 # Copyright (C) 2020 Wayne Davison
 #
index 587942f58787942e1c10bb838cd744bf8ceb771c..f971088fb65fabc8225e204c0df20e0dc841d351 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3 -B
+#!/usr/bin/env python3 -B
 
 # 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.  It also requires a
index 1b6f1ea9e76e99010a153bb0a85342b6c5db2259..255a8c257bdae9b5d2fe0bc0024a216724003dc5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3 -B
+#!/usr/bin/env python3 -B
 
 # This script is used to turn one or more of the "patch/BASE/*" branches
 # into one or more diffs in the "patches" directory.  Pass the option
index c54862ba4cbe27f5d22e5ab0dfa23a43d9965c15..11a4fd5435041c6c6306888b0eedf7b8d4651923 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3 -B
+#!/usr/bin/env python3 -B
 
 # 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,
index 6b472f71f2dd3e2033710677e3284c1ca2b8c54a..6468ac7af09ed3dd76932c80704af9bc8ce926c8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3 -B
+#!/usr/bin/env python3 -B
 
 # This script checks the *.c files for extraneous "extern" variables,
 # for vars that are defined but not used, and for inconsistent array
index a8792816215ce6643b1d9f63b51bcc29c532dec1..69d2f2ff9dcfcb6591e847a1306bda1e4a6820aa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 # This uses the output from "support/git-set-file-times --list" to discern
 # the last-modified year of each *.c & *.h file and updates the copyright
index 4e066ade22d33d3ea334cc29970630758abe4eb1..8101975ac6ef1e9e683e6658a61e49fbe02c5f52 100755 (executable)
--- a/rsync-ssl
+++ b/rsync-ssl
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This script uses openssl, gnutls, or stunnel to secure an rsync daemon connection.
 
index 79c2edfeff60a82046589b429ff9c7c46c203004..0346fb49a59bfdb1c0de4f141cd0948ca16b1cbd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This script lets you update a hierarchy of files in an atomic way by
 # first creating a new hierarchy using rsync's --link-dest option, and
index 33981de7603d5dcac9bcffbca8d2a06d22d090bd..fc7f78fb8fb5373394237a405a0371997aa5fb81 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This script finds all CVS/Entries files in the current directory and below
 # and creates a local .cvsinclude file with non-inherited rules including each
index 1993e3aa4d80b796e21a87d031ff637b14413e5b..bd4da9e737e43239291ed0b7305fb59ace2177c6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Send an error message via the rsync-protocol to a non-daemon client rsync.
 #
 # Usage:  deny-rsync "message"
index a053e1d97e271ded7593bd62e801785569334271..2e4a21b70b70e8b595151d159808512d874cedc9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This script will parse the output of "find ARG [ARG...] -ls" and
 # apply (at your discretion) the permissions, owner, and group info
 # it reads onto any existing files and dirs (it doesn't try to affect
index 5fb13b088d97d1a1b78cda2ca16b5d5c9ab08704..a28955cb6260b4561e43d5563f032ae217161b1a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This script takes an input of filenames and outputs a set of
 # include/exclude directives that can be used by rsync to copy
 # just the indicated files using an --exclude-from=FILE option.
index 4a20d441beaaec0c69d6d16dadbc110024900efb..b4c98c5d1bb23d3e4d805ee484d29f257585d4b1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 import os, re, argparse, subprocess
 from datetime import datetime
index e9efb1abab6f1cd8f9504999548c61a918a38ff0..8bcfd001891017961a0df1b4e8f8ebb684d0a5d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env 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
index 282914aa08df5816e02f0fc52ca5fd0e7cfe1dca..29cfe69063107f1217f97f220dbc32c05d94c7fd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # Filter the rsync daemon log messages by module name.  The log file can be
 # in either syslog format or rsync's own log-file format.  Note that the
 # MODULE_NAME parameter is used in a regular-expression match in order to
index 81a593b64ac58aad63df63f7e02b8decc0d9ccd2..40f70c88b0889b8904bc25606c4df2b5e78fdab3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This script can be used as a "remote shell" command that is only
 # capable of pretending to connect to "localhost".  This is useful
 # for testing or for running a local copy where the sender and the
index ca3b8173672780a58ba3eef70fd5d7697badbc78..88946bc017fd42925cec044493ed93a8433f15bd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This helper script makes it easy to use a passwd or group file to map
 # values in a LOCAL transfer.  For instance, if you mount a backup that
 # does not have the same passwd setup as the local machine, you can do
index a1dbe3c1f7f6005700d992b0c5683fe99e6976ef..95887523793ba81e28cd41f804c6da2161414948 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This helper script makes it easy to use a passwd or group file to map
 # values in a LOCAL transfer.  For instance, if you mount a backup that
 # does not have the same passwd setup as the local machine, you can do
index b2926db427a2aecd4c192625de422455e4978fd4..ed7b49ba5e15f1a3448f19a741fffad342a7037a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env 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
index 2aa27f369c3001d5fec563a1472509f5a580fbce..3e5f3ad2a9276fe755d0ea0d60ab33d06e6c83ab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # This script will either prefix all symlink values with the string
 # "/rsyncd-munged/" or remove that prefix.
 
index a0ba074df8ecca5b8d1ee8923b6392e0b97a6acd..34e623001e8bfaf1419d8fa723d4f00ff504d0e8 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 # Name: /usr/local/bin/rrsync (should also have a symlink in /usr/bin)
 # Purpose: Restricts rsync to subdirectory declared in .ssh/authorized_keys
 # Author: Joe Smith <js-cgi@inwap.com> 30-Sep-2004
index 1cce75cbf02d47c117d2ea1f12b36ed45baa8e99..cc3c29ce6fa7ec3c0cd5ffd2a4a3040b62fde07f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 IGNOREEXIT=24
 IGNOREOUT='^(file has vanished: |rsync warning: some files vanished before they could be transferred)'
index 43b82bf4ab0bb02a72ea9f12a08c26893deae111..2869e45cb09184fd124773527b51b097a65babdd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # This script can be used as an rsync command-line filter that strips a single
 # trailing slash from each arg.  That treats "src/" the same as "src", thus
 # you need to use "src/." or "src//" for just the contents of the "src" dir.
index ab7246d376bfd518563898677346c4f8ac2b0bfb..99fd5457679b5af806571c640ee0f24ab5550d1a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 #
 # This script parses the default logfile format produced by rsync when running
 # as a daemon with transfer logging enabled.  It also parses a slightly tweaked
index d71779acdfab961bc104811e054218916ea7ec9b..19ae71d10a2f3fef16f2b610a1b6fd27ac2005d8 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/python2.2
+#!/usr/bin/env python2
 
 # Copyright (C) 2002 by Martin Pool <mbp@samba.org>