mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 06:25:21 -04:00
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:
parent
4ee8062ba5
commit
7b3d60dce7
67 changed files with 67 additions and 67 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#SBATCH -A NWCHEM
|
||||
#SBATCH -t 08:00:00
|
||||
#SBATCH -N 1
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash -f
|
||||
#!/usr/bin/env bash -f
|
||||
#
|
||||
# $Id: doqmtests.mpi 25922 2014-07-18 22:40:13Z edo $
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
input_file=$1
|
||||
read -r line < "$input_file"
|
||||
echo "$line"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash -f
|
||||
#!/usr/bin/env bash -f
|
||||
CWD=`pwd`
|
||||
SCRATCHDIR=$CWD/scratchdir
|
||||
TESTOUTPUTS=$CWD/testoutputs
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# add_Id
|
||||
# ------
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Add the $Id: $ construct to a C file. For simplicity it is simply appended.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Add the $Id: $ construct to a Fortran file. For simplicity it is simply appended.
|
||||
#
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
function usage()
|
||||
{
|
||||
cat <<EOF
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#export RELEASE=6.5
|
||||
function usage()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
if [ $# != 3 ] ; then
|
||||
echo "Usage: $0 source-directory linux-version gcc-version"
|
||||
echo ""
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
source=`pwd`/$1
|
||||
date=`date +%Y-%m-%d`
|
||||
revision=`svn info ${source} | grep Revision:`
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Doxygen run script for NWChem
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
rm -rf *.movecs *.gridpts.* *.db *.out.rhf
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
# this script tries to figure out no. of processors and RAM
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
Vx=7
|
||||
Vy=0
|
||||
Vz=0
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
MYPWD=`pwd`
|
||||
if [[ -z "${NWCHEM_TOP}" ]]; then
|
||||
DIRMKDOCS=`dirname "$0"`
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
sed \
|
||||
-e 's/<img alt=\"\$\$/\$\$/' \
|
||||
-e 's/<img alt=\"\\(/\\(/' \
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
if [ ${#NWCHEM_EXECUTABLE} -eq 0 ] ; then
|
||||
export NWCHEM_EXECUTABLE=`find ../../../bin -name nwchem`
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
inputFile=$(basename -- "$1")
|
||||
inputFile="${inputFile%.*}"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Designed to use Robodoc 4.99.38
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# get_tests.bash
|
||||
# --------------
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Validate
|
||||
# ========
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash -f
|
||||
#!/usr/bin/env bash -f
|
||||
cd nwchem-6.5
|
||||
export NWCHEM_TOP=`pwd`
|
||||
export NWCHEM_TARGET=LINUX64
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash -f
|
||||
#!/usr/bin/env bash -f
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash -f
|
||||
#!/usr/bin/env bash -f
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
function usage ()
|
||||
{
|
||||
cat<<EOF
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
function usage ()
|
||||
{
|
||||
cat<<EOF
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
gfortran wfn1_test_para.F wfn1_f0df0f1.F wfn1_f1f2f3.F -o testpara
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
mv util_version.F bigv.F
|
||||
cat > util_version.F<<EOF
|
||||
subroutine util_version()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
os=`uname`
|
||||
dist="ubuntu"
|
||||
arch=`uname -m`
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
if [[ -z "$TRAVIS_BUILD_DIR" ]] ; then
|
||||
TRAVIS_BUILD_DIR=$(pwd)
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
echo "start compile"
|
||||
set -e
|
||||
# source env. variables
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# source env. variables
|
||||
if [[ -z "$TRAVIS_BUILD_DIR" ]] ; then
|
||||
TRAVIS_BUILD_DIR=$(pwd)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Exit on error
|
||||
set -e
|
||||
# source env. variables
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
rm -f make.log
|
||||
echo "starting sleep_loop.sh for command: " ${@}
|
||||
"${@}" >& make.log &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue