summaryrefslogtreecommitdiffstats
path: root/bin/make_err
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-10-03 16:12:32 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-10-03 21:01:40 (GMT)
commit7c82abc3fffa2ce573a9fd1b585962437a813ed6 (patch)
treefb940505496972a0c1a4caf4cb80c185e1651d29 /bin/make_err
parentaf1e100f49c8cdb6b0517352e4350690a6f7f51e (diff)
downloadhdf5-7c82abc3fffa2ce573a9fd1b585962437a813ed6.zip
hdf5-7c82abc3fffa2ce573a9fd1b585962437a813ed6.tar.gz
hdf5-7c82abc3fffa2ce573a9fd1b585962437a813ed6.tar.bz2
Not every system has perl installed in /usr/bin/, so change the shebang
(#!) line to `/usr/bin/env perl` to locate perl on the PATH. Everything after the first pathname in the shebang line is treated as a single argument to the command interpreter (/usr/bin/env "perl -w"), and there is not ordinarily any such program as "perl -w". So if the old shebang line used an option such as `-w`, add a `use warnings;` statement to the script---note that the semantics change slightly. `bin/destdep` uses a trick to pass `-p` to `/usr/bin/env perl`. It couldn't hurt to use the same trick to pass `-w`. With these changes, `sh autogen.sh` runs on NetBSD. It ought to still work on every other system HDF5 supports, too.
Diffstat (limited to 'bin/make_err')
-rwxr-xr-xbin/make_err3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/make_err b/bin/make_err
index 623c1b6..7f38591 100755
--- a/bin/make_err
+++ b/bin/make_err
@@ -1,6 +1,7 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
require 5.003;
$indent=4;
+use warnings;
#
# Copyright by The HDF Group.