00001
00033 #include "version.h"
00034
00035
00036 #include "globals.h"
00037 #include "legal.h"
00038 #include "output.h"
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00073 STATUS legal_notice(void)
00074 {
00075 char *buildinfo = strstr(BUILD,":");
00076 if (buildinfo)
00077 {
00078 int build = atoi(strstr(BUILD,":")+1);
00079 output_message("GridLAB-D Version %d.%02d.%03d (" BRANCH ")\n" COPYRIGHT
00080 "", global_version_major, global_version_minor,build);
00081 }
00082 else
00083 output_message("GridLAB-D Version %d.%02d.??? (" BRANCH ")\n" COPYRIGHT
00084 "", global_version_major, global_version_minor);
00085 return SUCCESS;
00086 }
00087
00091 STATUS legal_license(void)
00092 {
00093 output_message(
00094 COPYRIGHT
00095 "\n"
00096 "1. Battelle Memorial Institute (hereinafter Battelle) hereby grants\n"
00097 " permission to any person or entity lawfully obtaining a copy of\n"
00098 " this software and associated documentation files (hereinafter \"the\n"
00099 " Software\") to redistribute and use the Software in source and\n"
00100 " binary forms, with or without modification. Such person or entity\n"
00101 " may use, copy, modify, merge, publish, distribute, sublicense,\n"
00102 " and/or sell copies of the Software, and may permit others to do so,\n"
00103 " subject to the following conditions:\n"
00104 " - Redistributions of source code must retain the above copyright\n"
00105 " notice, this list of conditions and the following disclaimers.\n"
00106 " - Redistributions in binary form must reproduce the above copyright\n"
00107 " notice, this list of conditions and the following disclaimer in\n"
00108 " the documentation and/or other materials provided with the\n"
00109 " distribution.\n"
00110 " - Other than as used herein, neither the name Battelle Memorial\n"
00111 " Institute or Battelle may be used in any form whatsoever without\n"
00112 " the express written consent of Battelle.\n"
00113 "2. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"
00114 " \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n"
00115 " LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n"
00116 " A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BATTELLE OR\n"
00117 " CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n"
00118 " EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n"
00119 " PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n"
00120 " PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n"
00121 " OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n"
00122 " NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n"
00123 " SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
00124 "3. The Software was produced by Battelle under Contract No.\n"
00125 " DE-AC05-76RL01830 with the Department of Energy. The U.S. Government\n"
00126 " is granted for itself and others acting on its behalf a nonexclusive,\n"
00127 " paid-up, irrevocable worldwide license in this data to reproduce,\n"
00128 " prepare derivative works, distribute copies to the public, perform\n"
00129 " publicly and display publicly, and to permit others to do so. The\n"
00130 " specific term of the license can be identified by inquiry made to\n"
00131 " Battelle or DOE. Neither the United States nor the United States\n"
00132 " Department of Energy, nor any of their employees, makes any warranty,\n"
00133 " express or implied, or assumes any legal liability or responsibility\n"
00134 " for the accuracy, completeness or usefulness of any data, apparatus,\n"
00135 " product or process disclosed, or represents that its use would not\n"
00136 " infringe privately owned rights.\n"
00137 "\n"
00138 );
00139 return SUCCESS;
00140 }
00141