Changeset 180


Ignore:
Timestamp:
Apr 27, 2006, 10:05:38 AM (18 years ago)
Author:
garonne
Message:

delete only make files on linux and nmake on windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/source/cmt_parser.cxx

    r144 r180  
    21002100
    21012101  CmtSystem::scan_dir (".", expression, makes);
    2102 
     2102 
    21032103  if (makes.size () > 0)
    21042104    {
     
    21082108        {
    21092109          const cmt_string& s = makes[i];
    2110           CmtSystem::remove_file (s);
    2111         }
    2112     }
     2110          CmtSystem::cmt_string_vector words;
     2111          CmtSystem::split (s, '.', words);
     2112          if (words.size()>=2)
     2113              if (CmtSystem::get_makefile_suffix () == "nmake" && words[1] == "nmake")
     2114                      CmtSystem::remove_file (s);
     2115              else if (CmtSystem::get_makefile_suffix () == "make" && words[1] == "make")
     2116                      CmtSystem::remove_file (s);
     2117        }
     2118    }
     2119 
    21132120
    21142121  CmtSystem::cd ("..");
     
    21232130      for (int i = 0; i < makes.size (); i++)
    21242131        {
    2125           const cmt_string& s = makes[i];
    2126           CmtSystem::remove_file (s);
     2132          const cmt_string& s = makes[i];
     2133          CmtSystem::cmt_string_vector words;
     2134          CmtSystem::split (s, '.', words);
     2135          if (words.size()>=2)
     2136              if (CmtSystem::get_makefile_suffix () == "nmake" && words[1] == "nmake")
     2137                      CmtSystem::remove_file (s);
     2138              else if (CmtSystem::get_makefile_suffix () == "make" && words[1] == "make")
     2139                      CmtSystem::remove_file (s);
    21272140        }   
    21282141    }
     2142     //exit(-1);
    21292143
    21302144  /*
Note: See TracChangeset for help on using the changeset viewer.