]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.cpp
added versioning info to all shortcut files mothur makes.
[mothur.git] / mothur.cpp
index ea3ea3e521cf6f00c48156df3a6c57e70ef97bda..eb5e8f92c105f708d56a6d4ce681e94aaa0453c3 100644 (file)
@@ -97,10 +97,16 @@ int main(int argc, char *argv[]){
                        m->mothurOutEndLine(); m->mothurOutEndLine();
                #endif
                
+               //get releaseDate from Make
+               string releaseDate = RELEASE_DATE; 
+               string mothurVersion = VERSION; 
+               m->setReleaseDate(releaseDate);
+               m->setVersion(mothurVersion);
+               
                //header
-               m->mothurOut("mothur v.1.12.2");
+               m->mothurOut("mothur v." + mothurVersion);
                m->mothurOutEndLine();          
-               m->mothurOut("Last updated: 7/30/2010");
+               m->mothurOut("Last updated: " + releaseDate);
                m->mothurOutEndLine();  
                m->mothurOutEndLine();          
                m->mothurOut("by");