]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.cpp
changing command name classify.shared to classifyrf.shared
[mothur.git] / mothur.cpp
index 5838811ac62648bfbf0b6da18ef715d2010b73c6..accdb2962c198988c457dc8f837b8817dc2799f0 100644 (file)
@@ -46,7 +46,7 @@ int main(int argc, char *argv[]){
 
                m->setFileName(logFileName);
                
-               #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+               #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
                        system("clear");
                #else
                        system("CLS");
@@ -57,7 +57,7 @@ int main(int argc, char *argv[]){
                
                        //add / to name if needed
                        string lastChar = temp.substr(temp.length()-1);
-                       #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+                       #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
                                if (lastChar != "/") { temp += "/"; }
                        #else
                                if (lastChar != "\\") { temp += "\\"; } 
@@ -88,7 +88,7 @@ int main(int argc, char *argv[]){
                
                if (outputHeader)  {
                        //version
-                       #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+                       #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
                                #if defined (__APPLE__) || (__MACH__)
                                        m->mothurOutJustToLog("Mac version");
                                        m->mothurOutEndLine(); m->mothurOutEndLine();
@@ -228,7 +228,7 @@ int main(int argc, char *argv[]){
                                outNewLog.close();
                                
                                m->appendFiles(logFileName, newlogFileName);
-                               remove(logFileName.c_str());
+                               m->mothurRemove(logFileName);
                        }
                }else{  
                        newlogFileName = outputDir + logFileName;