summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gaussian-src/16-C.01-fix-shebangs.patch
blob: fe3681e4ad6e0160130c19906badf99a68fc3b74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
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