NWChem/contrib/obsolete/Fixinclude
2022-01-12 16:34:26 -08:00

27 lines
651 B
Tcsh

#!/bin/csh
#
# $Id$
#
# ! RJH ... This utility should no longer be necessary (10/95)
#
# This utility should safley find all files with
# a particular include file and set things up for
# a normal make pass. It is very conservative.
#
# RA Kendall PNL 4/95
#
# flaws:
# 1) trashes all includes
# 2) recompiles global
# 3) recompiles part tcgmsg
#
foreach include_file ($argv)
echo " searching for files with ........................... $include_file"
set list = `find . -name "*.F" -exec grep -l $include_file "{}" ";" `
foreach file ($list)
echo "touch $file "
touch $file
end
end
find . -name "*stamp" -exec rm "{}" ";"