Changeset 69176 in vbox for trunk/src/bldprogs/scmrw.cpp
- Timestamp:
- Oct 23, 2017 6:03:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/scmrw.cpp
r69170 r69176 164 164 * @note This isn't detectable as VirtualBox or Oracle specific. */ 165 165 static const char g_szMit[] = 166 "Permission is hereby granted, free of charge, to any person obtaining a\n" 167 "copy of this software and associated documentation files (the \"Software\"),\n" 168 "to deal in the Software without restriction, including without limitation\n" 169 "the rights to use, copy, modify, merge, publish, distribute, sublicense,\n" 170 "and/or sell copies of the Software, and to permit persons to whom the\n" 171 "Software is furnished to do so, subject to the following conditions:\n" 172 "\n" 173 "The above copyright notice and this permission notice shall be included in\n" 174 "all copies or substantial portions of the Software.\n" 175 "\n" 176 "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n" 177 "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" 178 "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n" 179 "THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR\n" 180 "OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n" 181 "ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n" 182 "OTHER DEALINGS IN THE SOFTWARE.\n"; 183 184 /** --license-mit, alternative wording. 185 * @note This isn't detectable as VirtualBox or Oracle specific. 186 * @note This differes from g_szMit in "COPYRIGHT HOLDER(S) OR AUTHOR(S)" is 187 * written "AUTHORS OR COPYRIGHT HOLDERS". Its layout is narrower, so 188 * it is a couple of lines longer. */ 189 static const char g_szMitAltB[] = 166 190 "Permission is hereby granted, free of charge, to any person\n" 167 191 "obtaining a copy of this software and associated documentation\n" … … 179 203 "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n" 180 204 "OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n" 181 "NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n"205 "NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n" 182 206 "HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n" 183 207 "WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n" 184 208 "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n" 185 209 "OTHER DEALINGS IN THE SOFTWARE.\n"; 210 211 /** --license-mit, alternative wording. 212 * @note This isn't detectable as VirtualBox or Oracle specific. 213 * @note This differes from g_szMit in that "COPYRIGHT HOLDER(S) OR AUTHOR(S)" 214 * is replaced with "THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS 215 * SUPPLIERS". */ 216 static const char g_szMitAltC[] = 217 "Permission is hereby granted, free of charge, to any person obtaining a\n" 218 "copy of this software and associated documentation files (the \"Software\"),\n" 219 "to deal in the Software without restriction, including without limitation\n" 220 "the rights to use, copy, modify, merge, publish, distribute, sublicense,\n" 221 "and/or sell copies of the Software, and to permit persons to whom the\n" 222 "Software is furnished to do so, subject to the following conditions:\n" 223 "\n" 224 "The above copyright notice and this permission notice shall be included in\n" 225 "all copies or substantial portions of the Software.\n" 226 "\n" 227 "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n" 228 "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" 229 "FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n" 230 "THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,\n" 231 "DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n" 232 "OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n" 233 "USE OR OTHER DEALINGS IN THE SOFTWARE.\n"; 234 235 /** --license-mit, alternative wording. 236 * @note This isn't detectable as VirtualBox or Oracle specific. 237 * @note This differes from g_szMitAltC in that the second and third sections 238 * have been switch. */ 239 static const char g_szMitAltD[] = 240 "Permission is hereby granted, free of charge, to any person obtaining a\n" 241 "copy of this software and associated documentation files (the \"Software\"),\n" 242 "to deal in the Software without restriction, including without limitation\n" 243 "the rights to use, copy, modify, merge, publish, distribute, sublicense,\n" 244 "and/or sell copies of the Software, and to permit persons to whom the\n" 245 "Software is furnished to do so, subject to the following conditions:\n" 246 "\n" 247 "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n" 248 "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n" 249 "FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL\n" 250 "THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,\n" 251 "DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n" 252 "OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n" 253 "USE OR OTHER DEALINGS IN THE SOFTWARE.\n" 254 "\n" 255 "The above copyright notice and this permission notice shall be included in\n" 256 "all copies or substantial portions of the Software.\n"; 257 186 258 187 259 /** Oracle confidential. */ … … 203 275 static const SCMLICENSETEXT g_aLicensesWithMit[] = 204 276 { 277 { kScmLicenseType_Mit, kScmLicense_Mit, RT_STR_TUPLE(g_szMit) }, 278 { kScmLicenseType_Mit, kScmLicense_Mit, RT_STR_TUPLE(g_szMitAltB) }, 279 { kScmLicenseType_Mit, kScmLicense_Mit, RT_STR_TUPLE(g_szMitAltC) }, 280 { kScmLicenseType_Mit, kScmLicense_Mit, RT_STR_TUPLE(g_szMitAltD) }, 205 281 { kScmLicenseType_OseGpl, kScmLicense_OseGpl, RT_STR_TUPLE(g_szVBoxOseGpl)}, 206 282 { kScmLicenseType_OseDualGplCddl, kScmLicense_OseDualGplCddl, RT_STR_TUPLE(g_szVBoxOseDualGplCddl) }, 207 283 { kScmLicenseType_VBoxLgpl, kScmLicense_Lgpl, RT_STR_TUPLE(g_szVBoxLgpl)}, 208 { kScmLicenseType_Mit, kScmLicense_Mit, RT_STR_TUPLE(g_szMit) },209 284 { kScmLicenseType_Confidential, kScmLicense_End, RT_STR_TUPLE(g_szOracleConfidential) }, 210 285 { kScmLicenseType_Invalid, kScmLicense_End, NULL, 0 }, … … 817 892 Assert(strlen(pszBody) == cchBody); 818 893 //RTPrintf("--- comment at %u, type %u ---\n%s\n--- end ---\n", pInfo->iLineStart, pInfo->enmType, pszBody); 819 ScmVerbose(pState->pState, 2,894 ScmVerbose(pState->pState, 4, 820 895 "--- comment at %u col %u, %u lines, type %u, %u lines before body, %u lines after body\n", 821 896 pInfo->iLineStart, pInfo->offStart, pInfo->iLineEnd - pInfo->iLineStart + 1, pInfo->enmType, … … 1018 1093 pState->fExternalLicense = fExternal; 1019 1094 pState->fIsCorrectLicense = pState->fOpenSource 1020 ? pCur ->enmOpt == pState->enmLicenceOpt1095 ? pCur == pState->pExpectedLicense 1021 1096 : pCur->enmType == kScmLicenseType_Confidential; 1022 1097 pState->fWellFormedLicense = memcmp(pszBody, pCur->psz, pCur->cch - 1) == 0;
Note:
See TracChangeset
for help on using the changeset viewer.