From 7fd72437091760e28ad2be6929d1291d44f6caaf Mon Sep 17 00:00:00 2001 From: edoapra Date: Thu, 20 Jan 2022 17:39:20 -0800 Subject: [PATCH] script converted to bash --- contrib/dbl2sngl_check | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/dbl2sngl_check b/contrib/dbl2sngl_check index a08eb59307..e6eaa209c3 100755 --- a/contrib/dbl2sngl_check +++ b/contrib/dbl2sngl_check @@ -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`)