VirtualBox

Changeset 69176 in vbox for trunk/src/bldprogs/scmrw.cpp


Ignore:
Timestamp:
Oct 23, 2017 6:03:54 PM (7 years ago)
Author:
vboxsync
Message:

scmrw.cpp: You'd thought there would only be one MIT license wording in the tree. sigh3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmrw.cpp

    r69170 r69176  
    164164 * @note This isn't detectable as VirtualBox or Oracle specific.  */
    165165static 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. */
     189static const char g_szMitAltB[] =
    166190    "Permission is hereby granted, free of charge, to any person\n"
    167191    "obtaining a copy of this software and associated documentation\n"
     
    179203    "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n"
    180204    "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"
    182206    "HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n"
    183207    "WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n"
    184208    "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n"
    185209    "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". */
     216static 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. */
     239static 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
    186258
    187259/** Oracle confidential. */
     
    203275static const SCMLICENSETEXT g_aLicensesWithMit[] =
    204276{
     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) },
    205281    { kScmLicenseType_OseGpl,           kScmLicense_OseGpl,         RT_STR_TUPLE(g_szVBoxOseGpl)},
    206282    { kScmLicenseType_OseDualGplCddl,   kScmLicense_OseDualGplCddl, RT_STR_TUPLE(g_szVBoxOseDualGplCddl) },
    207283    { kScmLicenseType_VBoxLgpl,         kScmLicense_Lgpl,           RT_STR_TUPLE(g_szVBoxLgpl)},
    208     { kScmLicenseType_Mit,              kScmLicense_Mit,            RT_STR_TUPLE(g_szMit) },
    209284    { kScmLicenseType_Confidential,     kScmLicense_End,            RT_STR_TUPLE(g_szOracleConfidential) },
    210285    { kScmLicenseType_Invalid,          kScmLicense_End,            NULL, 0 },
     
    817892    Assert(strlen(pszBody) == cchBody);
    818893    //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,
    820895               "--- comment at %u col %u, %u lines, type %u, %u lines before body, %u lines after body\n",
    821896               pInfo->iLineStart, pInfo->offStart, pInfo->iLineEnd - pInfo->iLineStart + 1, pInfo->enmType,
     
    10181093                    pState->fExternalLicense    = fExternal;
    10191094                    pState->fIsCorrectLicense   = pState->fOpenSource
    1020                                                 ? pCur->enmOpt == pState->enmLicenceOpt
     1095                                                ? pCur == pState->pExpectedLicense
    10211096                                                : pCur->enmType == kScmLicenseType_Confidential;
    10221097                    pState->fWellFormedLicense  = memcmp(pszBody, pCur->psz, pCur->cch - 1) == 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette