[gnome-builder/license-snippets: 4/4] Add MIT license snippet



commit fd030979705816a8c6408de6c43e911b922491d2
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Jan 29 00:07:21 2018 +0000

    Add MIT license snippet
    
    While (L)GPL are the preferred licenses for GNOME code, some of the low
    level shared code inside the stack is released under the terms of the
    MIT license, and it would be nice to have a snippet for automating the
    insertion of these terms into extant code bases.

 data/snippets/licenses.snippets | 79 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
---
diff --git a/data/snippets/licenses.snippets b/data/snippets/licenses.snippets
index 055082c28..812a237da 100644
--- a/data/snippets/licenses.snippets
+++ b/data/snippets/licenses.snippets
@@ -124,3 +124,82 @@ snippet lgpl
        //
        // SPDX-License-Identifier: LGPL-3.0-or-later
        $0
+snippet mit
+- scope c, chdr, cpp, css, js, vala
+       /* ${1:$filename}
+        *
+        * Copyright $year ${2:$fullname} <${3:$email}>
+        *
+        * Permission is hereby granted, free of charge, to any person obtaining a copy
+        * of this software and associated documentation files (the "Software"), to
+        * deal in the Software without restriction, including without limitation the
+        * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+        * sell copies of the Software, and to permit persons to whom the Software is
+        * furnished to do so, subject to the following conditions:
+        *
+        * The above copyright notice and this permission notice shall be included in
+        * all copies or substantial portions of the Software.
+        *
+        * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+        * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+        * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+        * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+        * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+        * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+        * SOFTWARE.
+        *
+        * SPDX-License-Identifier: MIT
+        */
+       $0
+- scope c-sharp, rust
+       //
+       // ${1:$filename}
+       //
+       // Copyright $year ${2:$fullname} <${3:$email}>
+       //
+       // Permission is hereby granted, free of charge, to any person obtaining a copy
+       // of this software and associated documentation files (the "Software"), to
+       // deal in the Software without restriction, including without limitation the
+       // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+       // sell copies of the Software, and to permit persons to whom the Software is
+       // furnished to do so, subject to the following conditions:
+       //
+       // The above copyright notice and this permission notice shall be included in
+       // all copies or substantial portions of the Software.
+       //
+       // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+       // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+       // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+       // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+       // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+       // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+       // IN THE SOFTWARE.
+       //
+       // SPDX-License-Identifier: MIT
+       $0
+- scope python, python3
+       #
+       # ${1:$filename}
+       #
+       # Copyright $year ${2:$fullname} <${3:$email}>
+       #
+       # Permission is hereby granted, free of charge, to any person obtaining a copy
+       # of this software and associated documentation files (the "Software"), to
+       # deal in the Software without restriction, including without limitation the
+       # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+       # sell copies of the Software, and to permit persons to whom the Software is
+       # furnished to do so, subject to the following conditions:
+       #
+       # The above copyright notice and this permission notice shall be included in
+       # all copies or substantial portions of the Software.
+       #
+       # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+       # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+       # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+       # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+       # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+       # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+       # IN THE SOFTWARE.
+       #
+       # SPDX-License-Identifier: MIT
+       $0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]