script converted to bash

This commit is contained in:
edoapra 2022-01-20 17:39:20 -08:00
parent 29e75d12bd
commit 7fd7243709
No known key found for this signature in database
GPG key ID: 472C4EBB4F3AEDFA

View file

@ -1,4 +1,4 @@
#!/bin/csh -x
#!/usr/bin/env bash
# script that checks the dbl_to_sngl then sngl_to_dbl name
# conversion. Any file that does not conform to the
# all lower case conversion will be flagged as modified
@ -6,18 +6,18 @@
#
echo " dbl2sngl_check @ `hostname` `date`"
cd
if (!($?NWCHEM_TOP)) then
if [ -z "$NWCHEM_TOP" ]; then
echo " NWCHEM_TOP not set "
exit 1
endif
fi
cd $NWCHEM_TOP/src
make directories
make nwchem_config NWCHEM_MODULES="all"
set startdate = (`date`)
startdate=`date`
#
$NWCHEM_TOP/contrib/update_look
/bin/time make dbl_to_sngl
/bin/time make sngl_to_dbl
/usr/bin/time make dbl_to_sngl
/usr/bin/time make sngl_to_dbl
$NWCHEM_TOP/contrib/update_look
#
set finaldate = (`date`)