fixed a silly bug of charm *.<junk> removes all files.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 6 Apr 2011 20:30:00 +0000 (15:30 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 6 Apr 2011 20:30:00 +0000 (15:30 -0500)
src/scripts/charmc

index 6f9add828fecc90f8ede6f87da240cf2ed466bed..b93312f39463d6c1e97e4f641bb4208606993df0 100755 (executable)
@@ -1192,11 +1192,14 @@ do
                fi
         fi
 
                fi
         fi
 
-       if [ "$FILE_EXT" != ".o" -a "$FILE_EXT" != ".co" -a "$FILE_EXT" != ".M" -a "$FILE_EXT" != ".ci" ]
-       then
+#      if [ "$FILE_EXT" != ".o" -a "$FILE_EXT" != ".co" -a "$FILE_EXT" != ".M" -a "$FILE_EXT" != ".ci" ]
+#      then
+        case "$FILE_EXT" in
+        .c|.s|.C|.cc|.cxx|.cpp|.c++|.cu|.f|.F|.f90|.F90)
                [ $VERBOSE ] && echo "Compiling $FILE"
                DoNoErrCheck $RM $BASEO $BASE.f.o
                [ $VERBOSE ] && echo "Compiling $FILE"
                DoNoErrCheck $RM $BASEO $BASE.f.o
-       fi
+        esac
+#      fi
        if [ ! -z "$SKIPLINK" ] 
        then
                DESTO=""
        if [ ! -z "$SKIPLINK" ] 
        then
                DESTO=""