From 5a67f15dd3949fe5fa4cdcd5b25c1ee916bd4343 Mon Sep 17 00:00:00 2001 From: Jim Bresch Date: Tue, 21 Aug 2012 23:28:12 +0000 Subject: [PATCH] Minor change to configure. Clean all the fort_netcdf files. Replace 6 lines of code with the equivalent 1 line. git-svn-id: https://svn-wrf-wps.cgd.ucar.edu/trunk@695 86b71a92-4018-0410-97f8-d555beccfc3a --- configure | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 6448715..ac6aaa3 100755 --- a/configure +++ b/configure @@ -304,12 +304,7 @@ EOF # Does our Fortran work with the given NETCDF library. - if [ -f "fort_netcdf.f" ] ; then - /bin/rm fort_netcdf.f - fi - if [ -f "fort_netcdf" ] ; then - /bin/rm fort_netcdf - fi + /bin/rm -f fort_netcdf.f fort_netcdf cat > fort_netcdf.f < /dev/null 2>&1 if [ $? = 0 ]; then - /bin/rm fort_netcdf.f fort_netcdf netcdf.inc + /bin/rm -f fort_netcdf.f fort_netcdf.o fort_netcdf netcdf.inc else echo echo "Your Fortran + NETCDF did not run successfully." -- 2.11.4.GIT