Fix bash shebangs: make /usr/bin/env find bash in paths

This is needed on FreeBSD and other systems where bash isn't located in /bin/bash.
This commit is contained in:
Yuri Victorovich 2021-11-07 14:06:22 -08:00
parent 4ee8062ba5
commit 7b3d60dce7
67 changed files with 67 additions and 67 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#MSUB -A mscfops
#MSUB -l "walltime=8:00:00"
#MSUB -l "nodes=1:ppn=8"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#MSUB -A mscfops
#MSUB -l "walltime=8:00:00"
#MSUB -l "nodes=2:ppn=8"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#SBATCH -A NWCHEM
#SBATCH -t 08:00:00
#SBATCH -N 1

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -f
#!/usr/bin/env bash -f
#
# $Id: doqmtests.mpi 25922 2014-07-18 22:40:13Z edo $
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
input_file=$1
read -r line < "$input_file"
echo "$line"

View file

@ -1,4 +1,4 @@
#!/bin/bash -f
#!/usr/bin/env bash -f
CWD=`pwd`
SCRATCHDIR=$CWD/scratchdir
TESTOUTPUTS=$CWD/testoutputs

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#echo "starting sleep_loop.sh for command: " ${@} >& /tmp/out
for last_arg in $@; do :; done
# echo "last arg of ${#} is $last_arg" >& /tmp/out

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exec=/home/d3y133/nwchem-dev/nwchem-ref/QA/tests/nwxc_nwdft_4n
tkdiff $exec/4n_b1b95.out 4n_b1b95.out
tkdiff $exec/4n_b97-3.out 4n_b97-3.out

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exec=/home/d3y133/nwchem-dev/nwchem-trunk/bin/LINUX64/nwchem
$exec 4n_b1b95.nw 2>&1 | tee 4n_b1b95.out
$exec 4n_b97-3.nw 2>&1 | tee 4n_b97-3.out

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exec=/home/d3y133/nwchem-dev/nwchem-ref/QA/tests/nwxc_nwdft_4n
tkdiff $exec/4n_b1b95.out 4n_b1b95.out
tkdiff $exec/4n_b97-3.out 4n_b97-3.out

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exec=/home/d3y133/nwchem-dev/nwchem-trunk/bin/LINUX64/nwchem
$exec 4n_b1b95.nw 2>&1 | tee 4n_b1b95.out
$exec 4n_b97-3.nw 2>&1 | tee 4n_b97-3.out

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exec=/home/d3y133/nwchem-dev/nwchem-ref/QA/tests/nwxc_nwdft_4n
tkdiff $exec/4n_b1b95.out 4n_b1b95.out
tkdiff $exec/4n_b97-3.out 4n_b97-3.out

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exec=/home/d3y133/nwchem-dev/nwchem-trunk/bin/LINUX64/nwchem
$exec 4n_b1b95.nw 2>&1 | tee 4n_b1b95.out
$exec 4n_b97-3.nw 2>&1 | tee 4n_b97-3.out

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# add_Id
# ------

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Add the $Id: $ construct to a C file. For simplicity it is simply appended.
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Add the $Id: $ construct to a Fortran file. For simplicity it is simply appended.
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Add the $Id: $ construct to a Makefile. For simplicity it is simply appended.
# This is used to avoid adding the C-style construct in Makefile include files.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function usage()
{
cat <<EOF

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#export RELEASE=6.5
function usage()
{

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ $# != 3 ] ; then
echo "Usage: $0 source-directory linux-version gcc-version"
echo ""

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# This script tests various builds to ensure that routines are stubbed
# properly when not needed.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source=`pwd`/$1
date=`date +%Y-%m-%d`
revision=`svn info ${source} | grep Revision:`

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Doxygen run script for NWChem
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -rf *.movecs *.gridpts.* *.db *.out.rhf

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ ! -f h2o1.movecs ] || [ ! -f h2o2.movecs ]; then
mpirun -np 4 ~/Programs/nwchem-dev-new-build/bin/LINUX64/./nwchem dimer.nw > dimer.out.rhf;

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
# this script tries to figure out no. of processors and RAM

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -rf temp.`date +%Y%m%d`
mkdir -p temp.`date +%Y%m%d`
cd temp.`date +%Y%m%d`

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
Vx=7
Vy=0
Vz=0

View file

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
curl -s https://api.github.com/repos/nwchemgit/nwchem/releases|egrep dow|sed 's/\"browser\_download\_url\":\ \"https:\/\/github.com\/nwchemgit\/nwchem\/releases\/download\///g' | sed 's/\"//g'
# curl -s https://api.github.com/repos/nwchemgit/nwchem/releases|egrep dow|sed 's/\"browser\_download\_url\":\ \"https:\/\/github.com\/nwchemgit\/nwchem\/releases\/download\//g'

View file

@ -1,4 +1,4 @@
#!/bin/bash -f
#!/usr/bin/env bash -f
#git log v6.8...v6.8-release --oneline --reverse
#args are tag1 and tag2
git log $1...$2 --oneline --reverse

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
MYPWD=`pwd`
if [[ -z "${NWCHEM_TOP}" ]]; then
DIRMKDOCS=`dirname "$0"`

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -rf nwchemgit.github.io_temp
git clone --depth 1 git@github.com:nwchemgit/nwchemgit.github.io.git nwchemgit.github.io_temp
cd nwchemgit.github.io_temp

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
sed \
-e 's/<img alt=\"\$\$/\$\$/' \
-e 's/<img alt=\"\\(/\\(/' \

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ ${#NWCHEM_EXECUTABLE} -eq 0 ] ; then
export NWCHEM_EXECUTABLE=`find ../../../bin -name nwchem`
fi

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
inputFile=$(basename -- "$1")
inputFile="${inputFile%.*}"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Designed to use Robodoc 4.99.38
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# get_tests.bash
# --------------

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Validate
# ========

View file

@ -1,4 +1,4 @@
#!/bin/bash -f
#!/usr/bin/env bash -f
cd nwchem-6.5
export NWCHEM_TOP=`pwd`
export NWCHEM_TARGET=LINUX64

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# script to download simint-generator, create the simint library, compile it
# and link it in NWChem
# FC=compilername can be used to set compiler, e.g.

View file

@ -1,4 +1,4 @@
#!/bin/bash -f
#!/usr/bin/env bash -f
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -f
#!/usr/bin/env bash -f
#
# $Id$
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function usage ()
{
cat<<EOF

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function usage ()
{
cat<<EOF

View file

@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
gfortran wfn1_test_para.F wfn1_f0df0f1.F wfn1_f1f2f3.F -o testpara

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -f win64_ma_nxtval.patch
cat > win64_ma_nxtval.patch <<EOF
--- $1/ma/ma.c.org 2020-02-28 11:39:16.000000000 -0800

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -f comex_configure.patch
cat > comex_configure.patch <<EOF
--- $1/comex/configure.orig 2020-06-04 11:16:29.506196033 -0700

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
sed -e 's/NXTVAL_/NXTVAL_OFF_/' $1/tcgmsg/tcgmsg-mpi/sndrcv.h > $1/tcgmsg/tcgmsg-mpi/sndrcv.h.mod
mv $1/tcgmsg/tcgmsg-mpi/sndrcv.h.mod $1/tcgmsg/tcgmsg-mpi/sndrcv.h
sed -e 's/NXTVAL_/NXTVAL_OFF_/' $1/tcgmsg/tcgmsg-mpi/srftoc.h > $1/tcgmsg/tcgmsg-mpi/srftoc.h.mod

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
mv util_version.F bigv.F
cat > util_version.F<<EOF
subroutine util_version()

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
os=`uname`
dist="ubuntu"
arch=`uname -m`

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ -z "$TRAVIS_BUILD_DIR" ]] ; then
TRAVIS_BUILD_DIR=$(pwd)
fi

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "start compile"
set -e
# source env. variables

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# source env. variables
if [[ -z "$TRAVIS_BUILD_DIR" ]] ; then
TRAVIS_BUILD_DIR=$(pwd)

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Exit on error
set -e
# source env. variables

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
rm -f make.log
echo "starting sleep_loop.sh for command: " ${@}
"${@}" >& make.log &