Merge branch 'release-4-6' into master
[alexxy/gromacs.git] / src / gromacs / gmxlib / copyrite.c
index 7c64b5cdc9b91c9fd8ac85f7540250dda69d87e3..fef70c2bc4302f0e9d06d60a5fec28c4f9205843 100644 (file)
@@ -201,6 +201,7 @@ void CopyRight(FILE *out, const char *szProgram)
     /* Dont change szProgram arbitrarily - it must be argv[0], i.e. the
      * name of a file. Otherwise, we won't be able to find the library dir.
      */
+
 #define NCR (int)asize(CopyrightText)
 /* TODO: Is this exception still needed? */
 #ifdef GMX_FAHCORE
@@ -228,6 +229,11 @@ void CopyRight(FILE *out, const char *szProgram)
     ster_print(out, GromacsVersion());
     fprintf(out, "\n");
 
+    if (getenv("GMX_NO_CREDITS"))
+    {
+        return;
+    }
+
     /* fprintf(out,"\n");*/
 
     /* sp_print(out,"PLEASE NOTE: THIS IS A BETA VERSION\n");