]> git.donarmstrong.com Git - mothur.git/commitdiff
1.18.0 - fixed make.shared abort issue
authorwestcott <westcott>
Mon, 11 Apr 2011 19:32:07 +0000 (19:32 +0000)
committerwestcott <westcott>
Mon, 11 Apr 2011 19:32:07 +0000 (19:32 +0000)
Mothur.xcodeproj/project.pbxproj
sharedcommand.cpp

index 5a384ce0ad97441e03231aa207b3b0029f5ed96a..dbe9347e33ebe48637d991f4b31bff75091dfc98 100644 (file)
                1DEB928B08733DD80010E9CD /* Release */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
-                               ARCHS = "$(NATIVE_ARCH_ACTUAL)";
+                               ARCHS = "$(ARCHS_STANDARD_64_BIT)";
                                DEPLOYMENT_LOCATION = NO;
                                GCC_C_LANGUAGE_STANDARD = gnu99;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
                                        "-lreadline",
                                );
                                PREBINDING = NO;
-                               SDKROOT = "";
+                               SDKROOT = macosx10.5;
                        };
                        name = Release;
                };
index d15354377efe906b7a6b10f45d6ca8dcd454a233..2b4d56ec44591400f977e365f6501e89170c9f02 100644 (file)
@@ -124,7 +124,7 @@ SharedCommand::SharedCommand(string option)  {
                         
                         //check for required parameters
                         listfile = validParameter.validFile(parameters, "list", true);
-                        if (listfile == "not open") { abort = true; }
+                        if (listfile == "not open") { listfile = ""; abort = true; }
                         else if (listfile == "not found") { 
                                 listfile = m->getListFile(); 
                                 if (listfile != "") { m->mothurOut("Using " + listfile + " as input file for the list parameter."); m->mothurOutEndLine(); }
@@ -176,11 +176,11 @@ SharedCommand::SharedCommand(string option)  {
                        //getting output filename
                        filename = listfile;
                        if (outputDir == "") { outputDir += m->hasPath(filename); }
-                       
+                                       
                        filename = outputDir + m->getRootName(m->getSimpleName(filename));
                        filename = filename + "shared";
                        outputTypes["shared"].push_back(filename);
-                       
+                               
                        m->openOutputFile(filename, out);
                        pickedGroups = false;
                                                
@@ -196,10 +196,10 @@ SharedCommand::SharedCommand(string option)  {
                                temp = new ofstream;
                                filehandles[Groups[i]] = temp;
                        }
-                       
+                               
                        //set fileroot
                        fileroot = outputDir + m->getRootName(m->getSimpleName(listfile));
-                       
+                               
                        //clears file before we start to write to it below
                        for (int i=0; i<Groups.size(); i++) {
                                remove((fileroot + Groups[i] + ".rabund").c_str());
@@ -220,6 +220,8 @@ SharedCommand::SharedCommand(string option)  {
 int SharedCommand::execute(){
        try {
                
+               if (abort == true) { if (calledHelp) { return 0; }  return 2;   }
+               
                //lookup.clear();
                string errorOff = "no error";
                //errorOff = "";