
* gaussian-src: initial commit to build from source * do not install the source to ensure to not accidentally distribute it to users * set required runtime env vars based on the login.profile * gaussian-view: update to 6.1.1
842 lines
20 KiB
Diff
842 lines
20 KiB
Diff
From 7f5d1d92b18951e364fe32a247056eea0cf130a0 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Tiziano=20M=C3=BCller?= <tiziano.mueller@chem.uzh.ch>
|
|
Date: Tue, 6 Oct 2020 17:55:08 +0200
|
|
Subject: [PATCH 5/5] fix shebangs
|
|
|
|
---
|
|
bsd/bldg16 | 3 ++-
|
|
bsd/cachesize | 2 +-
|
|
bsd/checkf | 2 +-
|
|
bsd/ckall | 2 +-
|
|
bsd/ckwork | 2 +-
|
|
bsd/clearipc | 2 +-
|
|
bsd/clone-working | 2 +-
|
|
bsd/cloneg16 | 2 +-
|
|
bsd/co1 | 2 +-
|
|
bsd/comp | 2 +-
|
|
bsd/comp4 | 2 +-
|
|
bsd/compall | 2 +-
|
|
bsd/comphalf | 2 +-
|
|
bsd/diff-src | 2 +-
|
|
bsd/do-util | 3 ++-
|
|
bsd/dom | 2 +-
|
|
bsd/extract-ghelp | 2 +-
|
|
bsd/extract-ghelp-16 | 2 +-
|
|
bsd/findnew | 2 +-
|
|
bsd/findnew1 | 2 +-
|
|
bsd/fixlib | 2 +-
|
|
bsd/fixlinda | 2 +-
|
|
bsd/g16test | 2 +-
|
|
bsd/gau-arflags | 2 +-
|
|
bsd/gau-fixexe | 2 +-
|
|
bsd/gau-get | 2 +-
|
|
bsd/gau-hname | 2 +-
|
|
bsd/gau-nname | 2 +-
|
|
bsd/gau-ranlib | 2 +-
|
|
bsd/gau-unlimit | 2 +-
|
|
bsd/get-ref | 2 +-
|
|
bsd/getx | 2 +-
|
|
bsd/gzt | 2 +-
|
|
bsd/install | 2 +-
|
|
bsd/l1.make | 2 +-
|
|
bsd/l4x | 3 ++-
|
|
bsd/l9999.make | 2 +-
|
|
bsd/linda-ln | 2 +-
|
|
bsd/linda-lnx | 2 +-
|
|
bsd/link.make | 2 +-
|
|
bsd/lx-working | 2 +-
|
|
bsd/lxi-working | 2 +-
|
|
bsd/make-edir | 2 +-
|
|
bsd/make-ldir | 2 +-
|
|
bsd/make-nutill | 3 ++-
|
|
bsd/makeutilcd | 2 +-
|
|
bsd/mkt | 3 ++-
|
|
bsd/mkunixcd | 2 +-
|
|
bsd/movemerged | 2 +-
|
|
bsd/rdmat-ext | 2 +-
|
|
bsd/ren | 2 +-
|
|
bsd/rfhello | 3 ++-
|
|
bsd/rs6k.make | 3 ++-
|
|
bsd/save-working | 2 +-
|
|
bsd/set-mflags | 2 +-
|
|
bsd/setcdef | 2 +-
|
|
bsd/setup-linda | 2 +-
|
|
bsd/ssrunx | 3 ++-
|
|
bsd/ssruny | 2 +-
|
|
bsd/subg16 | 4 ++--
|
|
bsd/sumcpu | 2 +-
|
|
bsd/tbzip | 2 +-
|
|
bsd/test-times | 2 +-
|
|
bsd/testl1 | 2 +-
|
|
bsd/testunf | 3 ++-
|
|
bsd/tgzip | 2 +-
|
|
bsd/tree.make | 2 +-
|
|
bsd/txzip | 2 +-
|
|
bsd/tzzip | 2 +-
|
|
bsd/upd | 2 +-
|
|
bsd/upd-util | 3 ++-
|
|
bsd/updatelink | 2 +-
|
|
bsd/updatelink1 | 2 +-
|
|
bsd/x86type | 2 +-
|
|
74 files changed, 85 insertions(+), 75 deletions(-)
|
|
|
|
diff --git a/bsd/bldg16 b/bsd/bldg16
|
|
index c3db34a..f7af456 100755
|
|
--- a/bsd/bldg16
|
|
+++ b/bsd/bldg16
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -xf
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
#
|
|
# Build Gaussian 16 from source as from distribution tape. The default
|
|
# directory should be the main g16 directory.
|
|
diff --git a/bsd/cachesize b/bsd/cachesize
|
|
index 5ec2c79..f03b7e7 100755
|
|
--- a/bsd/cachesize
|
|
+++ b/bsd/cachesize
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set x = `gau-machine`
|
|
@ minc = "524288"
|
|
if ($?GAUSS_CACHESIZE) then
|
|
diff --git a/bsd/checkf b/bsd/checkf
|
|
index f7a271e..0a672b7 100755
|
|
--- a/bsd/checkf
|
|
+++ b/bsd/checkf
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set name = "xxx-ftnchek"
|
|
set flags = "-noextern -sixchar -common=2 -novice=no -arguments=3 -array=0 -common=2 -f77=automatic-array,common-subprog-name,quotemark,statement-order,do-enddo,inline-comment,mixed-common -notruncation -truncation=real-do-index -truncation=real-subscript -nopure -nopretty -pretty=embedded-spaces -pretty=long-line -pretty=missing-space -usage=no-do-index-modified,no-arg-alias,no-arg-array-alias,arg-const-modified,ext-multiply-defined,var-set-unused,var-uninitialized,var-unused -nowrap -portability=tab -quiet"
|
|
set TD = "/tmp"
|
|
diff --git a/bsd/ckall b/bsd/ckall
|
|
index 0c058ec..177be53 100755
|
|
--- a/bsd/ckall
|
|
+++ b/bsd/ckall
|
|
@@ -1,3 +1,3 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
cat $g16root/g16/{l[0-9]*,lapack-generic,blas-generic,mm,formchk,unfchk,chkchk,c8616,copychk,cubegen,cubman,dummy,freqchk,freqmem,newzmat,wrappers,rwfdump,solname,trajgen,*util*,bsd/mdutil,bsd/mdl1}.F >all.all
|
|
checkf all.all x >&all.dat
|
|
diff --git a/bsd/ckwork b/bsd/ckwork
|
|
index 66f99a1..5194544 100755
|
|
--- a/bsd/ckwork
|
|
+++ b/bsd/ckwork
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Check for routines already in working which are also new in the
|
|
# current directory.
|
|
diff --git a/bsd/clearipc b/bsd/clearipc
|
|
index a94cc26..71a9dd7 100755
|
|
--- a/bsd/clearipc
|
|
+++ b/bsd/clearipc
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
unalias rm
|
|
if ("`whoami`" == "root") then
|
|
set us="x"
|
|
diff --git a/bsd/clone-working b/bsd/clone-working
|
|
index 22afef2..6c5f2e5 100755
|
|
--- a/bsd/clone-working
|
|
+++ b/bsd/clone-working
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if ("$1" == "-s") then
|
|
set ww = "/$workbase/1/frisch/working/save-$2"
|
|
mkdir save-$2
|
|
diff --git a/bsd/cloneg16 b/bsd/cloneg16
|
|
index ef69d69..56fb567 100755
|
|
--- a/bsd/cloneg16
|
|
+++ b/bsd/cloneg16
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Make a cloned copy of the Gaussian directories, with soft links
|
|
# to the source files but local copies of objects.
|
|
diff --git a/bsd/co1 b/bsd/co1
|
|
index 12ea322..007a2f5 100755
|
|
--- a/bsd/co1
|
|
+++ b/bsd/co1
|
|
@@ -1,2 +1,2 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
../bsd/comp -o ${1}*.F >&../make${1}.log
|
|
diff --git a/bsd/comp b/bsd/comp
|
|
index cb1737c..5a583c3 100755
|
|
--- a/bsd/comp
|
|
+++ b/bsd/comp
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
source $g16root/g16/bsd/g16.login
|
|
set mfile = "bsd/g16.make"
|
|
set mflags = "`set-mflags`"
|
|
diff --git a/bsd/comp4 b/bsd/comp4
|
|
index 0ca0806..7e11bf8 100755
|
|
--- a/bsd/comp4
|
|
+++ b/bsd/comp4
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if (-e bsd/g16.make) make -f bsd/g16.make clean
|
|
rm -f make*log
|
|
bsd/bldg16 $argv >&make.log &
|
|
diff --git a/bsd/compall b/bsd/compall
|
|
index d53392d..0b68de0 100755
|
|
--- a/bsd/compall
|
|
+++ b/bsd/compall
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if (-e bsd/g16.make) make -f bsd/g16.make clean
|
|
rm -f make*log
|
|
bsd/bldg16 $argv >&make.log &
|
|
diff --git a/bsd/comphalf b/bsd/comphalf
|
|
index 43bb0ee..b5fd399 100755
|
|
--- a/bsd/comphalf
|
|
+++ b/bsd/comphalf
|
|
@@ -1,2 +1,2 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
bsd/comp newzmat.F l1.F l101.F l10[2-9].F l1[1-2]?.F l[2-9]*.F l1???.F
|
|
diff --git a/bsd/diff-src b/bsd/diff-src
|
|
index 8b63e3a..cb08d97 100755
|
|
--- a/bsd/diff-src
|
|
+++ b/bsd/diff-src
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
foreach x (*.new)
|
|
diff -i -w $x $x:r.F >$x:r.diff
|
|
if ($status) then
|
|
diff --git a/bsd/do-util b/bsd/do-util
|
|
index b43b109..8469289 100755
|
|
--- a/bsd/do-util
|
|
+++ b/bsd/do-util
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
mkdir temp
|
|
cd temp
|
|
gau-fsplit $1/${2}.F
|
|
diff --git a/bsd/dom b/bsd/dom
|
|
index 4475ad5..92eccc4 100755
|
|
--- a/bsd/dom
|
|
+++ b/bsd/dom
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set file = "$1"
|
|
shift
|
|
set file = "$file:r"
|
|
diff --git a/bsd/extract-ghelp b/bsd/extract-ghelp
|
|
index a4e5e9e..36e6ba8 100755
|
|
--- a/bsd/extract-ghelp
|
|
+++ b/bsd/extract-ghelp
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# This script runs awk to create abstracts of each source file
|
|
# containing the information for ghelp. This allows ghelp to
|
|
diff --git a/bsd/extract-ghelp-16 b/bsd/extract-ghelp-16
|
|
index 9635d7b..36e6ba8 100755
|
|
--- a/bsd/extract-ghelp-16
|
|
+++ b/bsd/extract-ghelp-16
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# This script runs awk to create abstracts of each source file
|
|
# containing the information for ghelp. This allows ghelp to
|
|
diff --git a/bsd/findnew b/bsd/findnew
|
|
index bc1d527..2ab83c4 100755
|
|
--- a/bsd/findnew
|
|
+++ b/bsd/findnew
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if ("$1" == "") then
|
|
set ext = "diffn"
|
|
@ docopy = 0
|
|
diff --git a/bsd/findnew1 b/bsd/findnew1
|
|
index 9d42145..70ae61f 100755
|
|
--- a/bsd/findnew1
|
|
+++ b/bsd/findnew1
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if ("$1" == "") then
|
|
set ext = "diff"
|
|
else
|
|
diff --git a/bsd/fixlib b/bsd/fixlib
|
|
index ae7118d..0cd9ad1 100755
|
|
--- a/bsd/fixlib
|
|
+++ b/bsd/fixlib
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Fix up a library using lorder. This routine just does a ranlib except
|
|
# on the trace because some of the libraries have too many object files
|
|
diff --git a/bsd/fixlinda b/bsd/fixlinda
|
|
index 233fff1..0a395db 100755
|
|
--- a/bsd/fixlinda
|
|
+++ b/bsd/fixlinda
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set x = `pwd`
|
|
set y = `basename $x`
|
|
if ("$y" != "g16") then
|
|
diff --git a/bsd/g16test b/bsd/g16test
|
|
index 3967e8e..a7c0808 100755
|
|
--- a/bsd/g16test
|
|
+++ b/bsd/g16test
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Script to run G16 from a working directory with
|
|
# other executables from the standard places.
|
|
diff --git a/bsd/gau-arflags b/bsd/gau-arflags
|
|
index 7aba8a4..d268bc0 100755
|
|
--- a/bsd/gau-arflags
|
|
+++ b/bsd/gau-arflags
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set x = `gau-machine`
|
|
set machflags = ""
|
|
set modeflags = ""
|
|
diff --git a/bsd/gau-fixexe b/bsd/gau-fixexe
|
|
index 2266453..892eec6 100755
|
|
--- a/bsd/gau-fixexe
|
|
+++ b/bsd/gau-fixexe
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set gm = "$g16root/g16/bsd/gau-hname"
|
|
if (-e $gm) then
|
|
set hname = `gau-hname`
|
|
diff --git a/bsd/gau-get b/bsd/gau-get
|
|
index 29e9e96..4da00b0 100755
|
|
--- a/bsd/gau-get
|
|
+++ b/bsd/gau-get
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
@ n = $#argv - 1
|
|
set str = ""
|
|
foreach x ($argv[1-$n])
|
|
diff --git a/bsd/gau-hname b/bsd/gau-hname
|
|
index c56cc6f..00a422e 100755
|
|
--- a/bsd/gau-hname
|
|
+++ b/bsd/gau-hname
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set xname = "$g16root/g16"
|
|
if ((-e $xname/ia32p4.flag) || (-e $xname/ia32p3.flag) ) then
|
|
set hname = "i386"
|
|
diff --git a/bsd/gau-nname b/bsd/gau-nname
|
|
index 391f44f..ad7daa7 100755
|
|
--- a/bsd/gau-nname
|
|
+++ b/bsd/gau-nname
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if ("$1" == "-") then
|
|
set nn = ""
|
|
else
|
|
diff --git a/bsd/gau-ranlib b/bsd/gau-ranlib
|
|
index 79c4eda..5ff56cb 100755
|
|
--- a/bsd/gau-ranlib
|
|
+++ b/bsd/gau-ranlib
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Do a ranlib if necessary on this machine.
|
|
#
|
|
diff --git a/bsd/gau-unlimit b/bsd/gau-unlimit
|
|
index 3e7b971..df3c044 100755
|
|
--- a/bsd/gau-unlimit
|
|
+++ b/bsd/gau-unlimit
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Do unlimits if this machine allows them.
|
|
#
|
|
diff --git a/bsd/get-ref b/bsd/get-ref
|
|
index 023696c..b6a773f 100755
|
|
--- a/bsd/get-ref
|
|
+++ b/bsd/get-ref
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if ($#argv < 1) then
|
|
set flist = "mdutil cphfutil putil osutil utilam utilnz"
|
|
else
|
|
diff --git a/bsd/getx b/bsd/getx
|
|
index 4a5d8f8..23691eb 100755
|
|
--- a/bsd/getx
|
|
+++ b/bsd/getx
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if ($#argv < 2) then
|
|
echo "usage: getx <routines> link"
|
|
exit
|
|
diff --git a/bsd/gzt b/bsd/gzt
|
|
index ffa5fa0..95ad348 100755
|
|
--- a/bsd/gzt
|
|
+++ b/bsd/gzt
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Compress a range of test output files.
|
|
#
|
|
diff --git a/bsd/install b/bsd/install
|
|
index 7b0e589..f5f29af 100755
|
|
--- a/bsd/install
|
|
+++ b/bsd/install
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Fix file protections in the g16 directories.
|
|
#
|
|
diff --git a/bsd/l1.make b/bsd/l1.make
|
|
index f041912..585ac3a 100644
|
|
--- a/bsd/l1.make
|
|
+++ b/bsd/l1.make
|
|
@@ -1,4 +1,4 @@
|
|
-SHELL=/bin/csh
|
|
+SHELL=/usr/bin/env tcsh
|
|
GAU_DIR = $(g16root)/g16
|
|
GAU_DIRL = $(GAU_DIR)
|
|
GAU_DIRA = $(GAU_DIR)
|
|
diff --git a/bsd/l4x b/bsd/l4x
|
|
index a7de578..e58226f 100755
|
|
--- a/bsd/l4x
|
|
+++ b/bsd/l4x
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
setenv GAUSS_LFLAGS '-n 3 -mp 2 -nodelist "brahms bruckner"'
|
|
setenv GAUSS_EXEDIR $g98root/g98/linda-exe:$g98root/g98
|
|
setenv LD_LIBRARY_PATH $g98root/g98
|
|
diff --git a/bsd/l9999.make b/bsd/l9999.make
|
|
index 643b580..6b317ee 100644
|
|
--- a/bsd/l9999.make
|
|
+++ b/bsd/l9999.make
|
|
@@ -1,4 +1,4 @@
|
|
-SHELL=/bin/csh
|
|
+SHELL=/usr/bin/env tcsh
|
|
GAU_DIR = $(g16root)/g16
|
|
GAU_DIRL = $(GAU_DIR)
|
|
GAU_DIRA = $(GAU_DIR)
|
|
diff --git a/bsd/linda-ln b/bsd/linda-ln
|
|
index d6f26a2..eb514e6 100755
|
|
--- a/bsd/linda-ln
|
|
+++ b/bsd/linda-ln
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Make soft links to the dummy linda link and to each each real one.
|
|
#
|
|
diff --git a/bsd/linda-lnx b/bsd/linda-lnx
|
|
index 15ab0d0..65824be 100755
|
|
--- a/bsd/linda-lnx
|
|
+++ b/bsd/linda-lnx
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Make soft links to the dummy linda link and to each each real one.
|
|
#
|
|
diff --git a/bsd/link.make b/bsd/link.make
|
|
index 540903d..dfbeb4b 100644
|
|
--- a/bsd/link.make
|
|
+++ b/bsd/link.make
|
|
@@ -1,4 +1,4 @@
|
|
-SHELL=/bin/csh
|
|
+SHELL=/usr/bin/env tcsh
|
|
GAU_DIR = $(g16root)/g16
|
|
GAU_DIRL = $(GAU_DIR)
|
|
GAU_DIRA = $(GAU_DIR)
|
|
diff --git a/bsd/lx-working b/bsd/lx-working
|
|
index 5b9315d..e07e01d 100755
|
|
--- a/bsd/lx-working
|
|
+++ b/bsd/lx-working
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
foreach x ($argv)
|
|
ln -s /$workbase/1/frisch/working/$x:r.{com,log} .
|
|
end
|
|
diff --git a/bsd/lxi-working b/bsd/lxi-working
|
|
index 7b08887..1adce2f 100755
|
|
--- a/bsd/lxi-working
|
|
+++ b/bsd/lxi-working
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
set m = "`gau-machine`"
|
|
if ($m == "sgi") then
|
|
set ext = ".sgi"
|
|
diff --git a/bsd/make-edir b/bsd/make-edir
|
|
index 7fb8a35..01afb73 100755
|
|
--- a/bsd/make-edir
|
|
+++ b/bsd/make-edir
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# usage: make-edir
|
|
#
|
|
diff --git a/bsd/make-ldir b/bsd/make-ldir
|
|
index 944b35e..59acb95 100755
|
|
--- a/bsd/make-ldir
|
|
+++ b/bsd/make-ldir
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# usage: make-ldir links
|
|
#
|
|
diff --git a/bsd/make-nutill b/bsd/make-nutill
|
|
index 016cb34..c5b8ac3 100755
|
|
--- a/bsd/make-nutill
|
|
+++ b/bsd/make-nutill
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
rm -fr nutill
|
|
mkdir nutill
|
|
cd nutil
|
|
diff --git a/bsd/makeutilcd b/bsd/makeutilcd
|
|
index 6ea4228..9fa264c 100755
|
|
--- a/bsd/makeutilcd
|
|
+++ b/bsd/makeutilcd
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Should be in cds directory, then
|
|
#
|
|
diff --git a/bsd/mkt b/bsd/mkt
|
|
index 976efa2..bf7eeb2 100755
|
|
--- a/bsd/mkt
|
|
+++ b/bsd/mkt
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
if (! (-d $1)) then
|
|
echo "no directory $1"
|
|
exit
|
|
diff --git a/bsd/mkunixcd b/bsd/mkunixcd
|
|
index 6503593..15995ce 100755
|
|
--- a/bsd/mkunixcd
|
|
+++ b/bsd/mkunixcd
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
if ($#argv <2) then
|
|
echo "usage: mkisofs target-file source-directories"
|
|
exit
|
|
diff --git a/bsd/movemerged b/bsd/movemerged
|
|
index 45fa619..538b4ed 100755
|
|
--- a/bsd/movemerged
|
|
+++ b/bsd/movemerged
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if ($#argv < 2) then
|
|
set dir = "../nutil"
|
|
else
|
|
diff --git a/bsd/rdmat-ext b/bsd/rdmat-ext
|
|
index 59e62d0..713046b 100755
|
|
--- a/bsd/rdmat-ext
|
|
+++ b/bsd/rdmat-ext
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
@ savefiles = 0
|
|
@ dumpfiles = 1
|
|
@ narg = 0
|
|
diff --git a/bsd/ren b/bsd/ren
|
|
index 60171eb..2862edb 100755
|
|
--- a/bsd/ren
|
|
+++ b/bsd/ren
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Rename a list of files to a new extension.
|
|
#
|
|
diff --git a/bsd/rfhello b/bsd/rfhello
|
|
index fb31adf..9ce5b94 100755
|
|
--- a/bsd/rfhello
|
|
+++ b/bsd/rfhello
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
set host = `hostname`
|
|
if ("$1" == "") then
|
|
@ n = 8
|
|
diff --git a/bsd/rs6k.make b/bsd/rs6k.make
|
|
index 09f3e0c..259812b 100644
|
|
--- a/bsd/rs6k.make
|
|
+++ b/bsd/rs6k.make
|
|
@@ -1,4 +1,5 @@
|
|
-#SHELL=/bin/csh -xf
|
|
+#SHELL=/usr/bin/env tcsh
|
|
+set echo
|
|
#
|
|
# Makefile for Gaussian 16.
|
|
#
|
|
diff --git a/bsd/save-working b/bsd/save-working
|
|
index c0e67d0..db78b18 100755
|
|
--- a/bsd/save-working
|
|
+++ b/bsd/save-working
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -x
|
|
+#!/usr/bin/env tcsh -x
|
|
if (-e save.num) then
|
|
@ n = `cat save.num` + 1
|
|
else
|
|
diff --git a/bsd/set-mflags b/bsd/set-mflags
|
|
index ea3523a..6505c17 100755
|
|
--- a/bsd/set-mflags
|
|
+++ b/bsd/set-mflags
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# echo the appropriate flags for make (no arguments) or the make command (1 argument).
|
|
#
|
|
diff --git a/bsd/setcdef b/bsd/setcdef
|
|
index b9142e4..c985e0b 100755
|
|
--- a/bsd/setcdef
|
|
+++ b/bsd/setcdef
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# return a string for the GAUSS_CDEF environment variable
|
|
#
|
|
diff --git a/bsd/setup-linda b/bsd/setup-linda
|
|
index de9e996..c8ef8fd 100755
|
|
--- a/bsd/setup-linda
|
|
+++ b/bsd/setup-linda
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
cd linda7.1
|
|
common/bin/install_pkg
|
|
cd ..
|
|
diff --git a/bsd/ssrunx b/bsd/ssrunx
|
|
index 34a80ff..b211151 100755
|
|
--- a/bsd/ssrunx
|
|
+++ b/bsd/ssrunx
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
set x = "`gau-machine`"
|
|
set n = "`basename $0`"
|
|
set d = "$n:r"
|
|
diff --git a/bsd/ssruny b/bsd/ssruny
|
|
index e96f64f..e82c4c0 100755
|
|
--- a/bsd/ssruny
|
|
+++ b/bsd/ssruny
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set x = "`gau-machine`"
|
|
set n = "`basename $0`"
|
|
set d = "$n:r"
|
|
diff --git a/bsd/subg16 b/bsd/subg16
|
|
index fd2fab6..66dbc1b 100755
|
|
--- a/bsd/subg16
|
|
+++ b/bsd/subg16
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Submit a Gaussian 16 job to an nqs batch queue.
|
|
#
|
|
@@ -12,7 +12,7 @@
|
|
# Generate script, explicitly requesting the csh.
|
|
#
|
|
cat <<END >$2.job
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
cd \$QSUB_WORKDIR
|
|
source $g16root/g16/bsd/gau-unlimit
|
|
g16 <$2.com >&$2.log
|
|
diff --git a/bsd/sumcpu b/bsd/sumcpu
|
|
index 4d8c823..93e015d 100755
|
|
--- a/bsd/sumcpu
|
|
+++ b/bsd/sumcpu
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# sum cpu usage
|
|
#
|
|
diff --git a/bsd/tbzip b/bsd/tbzip
|
|
index 78e5bce..8b28598 100755
|
|
--- a/bsd/tbzip
|
|
+++ b/bsd/tbzip
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
foreach x ($argv)
|
|
bzip2 -9 -v $x:r.tar
|
|
mv $x:r.tar.bz2 $x:r.tbz
|
|
diff --git a/bsd/test-times b/bsd/test-times
|
|
index be04ce1..6c44242 100755
|
|
--- a/bsd/test-times
|
|
+++ b/bsd/test-times
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set h = `grep days $argv | count 7`
|
|
set m = `grep days $argv | count 9`
|
|
set s = `grep days $argv | count 11`
|
|
diff --git a/bsd/testl1 b/bsd/testl1
|
|
index 3901f2f..4ac7a37 100755
|
|
--- a/bsd/testl1
|
|
+++ b/bsd/testl1
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Test a new version of link 1. The new version is assumed to be
|
|
# l1/testrt. If arguments are provided, they are used as the route;
|
|
diff --git a/bsd/testunf b/bsd/testunf
|
|
index c3ae429..142c0ca 100755
|
|
--- a/bsd/testunf
|
|
+++ b/bsd/testunf
|
|
@@ -1,3 +1,4 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
echo "argv is $argv"
|
|
cp $1 $7
|
|
diff --git a/bsd/tgzip b/bsd/tgzip
|
|
index 90b27c1..e7051d8 100755
|
|
--- a/bsd/tgzip
|
|
+++ b/bsd/tgzip
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
foreach x ($argv)
|
|
gzip -9 -v $x:r.tar
|
|
mv $x:r.tar.gz $x:r.tgz
|
|
diff --git a/bsd/tree.make b/bsd/tree.make
|
|
index e22451b..91e76ce 100644
|
|
--- a/bsd/tree.make
|
|
+++ b/bsd/tree.make
|
|
@@ -5,7 +5,7 @@
|
|
GAU_DIR = $(g16root)/g16
|
|
GAU_DIRL = $(GAU_DIR)
|
|
|
|
-SHELL = /bin/csh
|
|
+SHELL = /usr/bin/env tcsh
|
|
UTIL_NAME = util.a
|
|
GAU_DIRA = $(GAU_DIR)
|
|
|
|
diff --git a/bsd/txzip b/bsd/txzip
|
|
index 23a6a1b..a9248ff 100755
|
|
--- a/bsd/txzip
|
|
+++ b/bsd/txzip
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
if (("$1" == "j") || ("$1" == "J")) then
|
|
set ext = "tbJ"
|
|
shift
|
|
diff --git a/bsd/tzzip b/bsd/tzzip
|
|
index a86a4b8..9a2f462 100755
|
|
--- a/bsd/tzzip
|
|
+++ b/bsd/tzzip
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh
|
|
+#!/usr/bin/env tcsh
|
|
foreach x ($argv)
|
|
xz -9 -v $x:r.tar
|
|
mv $x:r.tar.bz2 $x:r.tbz
|
|
diff --git a/bsd/upd b/bsd/upd
|
|
index d6017b3..00ca77f 100755
|
|
--- a/bsd/upd
|
|
+++ b/bsd/upd
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Update a link for which the specified routines have been changed.
|
|
#
|
|
diff --git a/bsd/upd-util b/bsd/upd-util
|
|
index 7d007ea..c16b082 100755
|
|
--- a/bsd/upd-util
|
|
+++ b/bsd/upd-util
|
|
@@ -1,4 +1,5 @@
|
|
-#!/bin/csh -fx
|
|
+#!/usr/bin/env tcsh
|
|
+set echo
|
|
mkdir temp
|
|
cd temp
|
|
foreach x ($argv)
|
|
diff --git a/bsd/updatelink b/bsd/updatelink
|
|
index 7cc99ee..6399d53 100755
|
|
--- a/bsd/updatelink
|
|
+++ b/bsd/updatelink
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Update a link library with the specified source files.
|
|
#
|
|
diff --git a/bsd/updatelink1 b/bsd/updatelink1
|
|
index 906e3aa..962dd59 100755
|
|
--- a/bsd/updatelink1
|
|
+++ b/bsd/updatelink1
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
#
|
|
# Update a link library with the specified source files.
|
|
#
|
|
diff --git a/bsd/x86type b/bsd/x86type
|
|
index 9ead8f3..7ef1ebe 100755
|
|
--- a/bsd/x86type
|
|
+++ b/bsd/x86type
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/csh -f
|
|
+#!/usr/bin/env tcsh
|
|
set type = "amd"
|
|
set list = "sse4"
|
|
if (-e /proc/cpuinfo) then
|
|
--
|
|
2.26.2
|
|
|