From 4281d101c41f80a75143c0d40232383a81afc7f0 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 13 Nov 2019 13:04:26 -0600 Subject: Make this script work on hosts where PERL is not installed at /usr/bin/perl. --- bin/warnhist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/warnhist b/bin/warnhist index 7e56246..a8dcd97 100755 --- a/bin/warnhist +++ b/bin/warnhist @@ -1,5 +1,6 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl require 5.003; +use warnings; # # Copyright by The HDF Group. -- cgit v0.12 From ec4418a75716b7f2ce53e627de28d139b281b545 Mon Sep 17 00:00:00 2001 From: David Young Date: Thu, 19 Dec 2019 15:06:57 -0600 Subject: In portable shell scripts (using #!/bin/sh) we have to use single square brackets, [ ], instead of the bash-ism double square brackets, [[ ]]. --- hl/tools/h5watch/testh5watch.sh.in | 2 +- tools/test/h5dump/testh5dump.sh.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hl/tools/h5watch/testh5watch.sh.in b/hl/tools/h5watch/testh5watch.sh.in index d31bcc3..24ff6aa 100644 --- a/hl/tools/h5watch/testh5watch.sh.in +++ b/hl/tools/h5watch/testh5watch.sh.in @@ -18,7 +18,7 @@ # supports SWMR. ./swmr_check_compat_vfd rc=$? -if [[ $rc != 0 ]] ; then +if [ $rc != 0 ] ; then echo echo "The VFD specified by the HDF5_DRIVER environment variable" echo "does not support SWMR." diff --git a/tools/test/h5dump/testh5dump.sh.in b/tools/test/h5dump/testh5dump.sh.in index 4b85138..dc7d999 100644 --- a/tools/test/h5dump/testh5dump.sh.in +++ b/tools/test/h5dump/testh5dump.sh.in @@ -923,7 +923,7 @@ GREPTEST() cd $TESTDIR $ENVCMD $RUNSERIAL $DUMPER_BIN -p "$@" ) >$actual 2>$actual_err - if [[ "$txttype" = "ERRTXT" ]]; then + if [ "$txttype" = "ERRTXT" ]; then $GREP "$expectdata" $actual_err > /dev/null else $GREP "$expectdata" $actual > /dev/null -- cgit v0.12