[gnome-builder] snippets: Add license snippets for Apache-2.0 and MIT/Apache-2.0



commit 2e196b5e66bfe5a47782ce0ff170e54828e76c2f
Author: Ricardo Silva Veloso <ricvelozo gmail com>
Date:   Sat Jun 23 19:09:25 2018 -0300

    snippets: Add license snippets for Apache-2.0 and MIT/Apache-2.0

 data/snippets/licenses.snippets | 96 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 96 insertions(+)
---
diff --git a/data/snippets/licenses.snippets b/data/snippets/licenses.snippets
index 3283dee2a..5b225f240 100644
--- a/data/snippets/licenses.snippets
+++ b/data/snippets/licenses.snippets
@@ -1,3 +1,63 @@
+snippet apache
+- scope c, chdr, cpp, css, js, vala, java
+       /* ${1:$filename}
+        *
+        * Copyright $year ${2:$fullname} <${3:$email}>
+        *
+        * Licensed under the Apache License, Version 2.0 (the "License");
+        * you may not use this file except in compliance with the License.
+        * You may obtain a copy of the License at
+        *
+        *      http://www.apache.org/licenses/LICENSE-2.0
+        *
+        * Unless required by applicable law or agreed to in writing, software
+        * distributed under the License is distributed on an "AS IS" BASIS,
+        * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+        * See the License for the specific language governing permissions and
+        * limitations under the License.
+        *
+        * SPDX-License-Identifier: Apache-2.0
+        */
+       $0
+- scope python, python3
+       # ${1:$filename}
+       #
+       # Copyright $year ${2:$fullname} <${3:$email}>
+       #
+       # Licensed under the Apache License, Version 2.0 (the "License");
+       # you may not use this file except in compliance with the License.
+       # You may obtain a copy of the License at
+       #
+       #       http://www.apache.org/licenses/LICENSE-2.0
+       #
+       # Unless required by applicable law or agreed to in writing, software
+       # distributed under the License is distributed on an "AS IS" BASIS,
+       # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+       # See the License for the specific language governing permissions and
+       # limitations under the License.
+       #
+       # SPDX-License-Identifier: Apache-2.0
+       $0
+- scope c-sharp, rust
+       //
+       // ${1:$filename}
+       //
+       // Copyright $year ${2:$fullname} <${3:$email}>
+       //
+       // Licensed under the Apache License, Version 2.0 (the "License");
+       // you may not use this file except in compliance with the License.
+       // You may obtain a copy of the License at
+       //
+       //      http://www.apache.org/licenses/LICENSE-2.0
+       //
+       // Unless required by applicable law or agreed to in writing, software
+       // distributed under the License is distributed on an "AS IS" BASIS,
+       // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+       // See the License for the specific language governing permissions and
+       // limitations under the License.
+       //
+       // SPDX-License-Identifier: Apache-2.0
+       $0
 snippet gpl
 - scope c, chdr, cpp, css, js, vala, java
        /* ${1:$filename}
@@ -203,3 +263,39 @@ snippet mit
        #
        # SPDX-License-Identifier: MIT
        $0
+snippet mitapache
+- scope c, chdr, cpp, css, js, vala, java
+       /* ${1:$filename}
+        *
+        * Copyright $year ${2:$fullname} <${3:$email}>
+        *
+        * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+        * https://www.apache.org/licenses/LICENSE-2.0> or the MIT License
+        * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
+        * option. This file may not be copied, modified, or distributed
+        * except according to those terms.
+        */
+       $0
+- scope python, python3
+       # ${1:$filename}
+       #
+       # Copyright $year ${2:$fullname} <${3:$email}>
+       #
+       # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+       # https://www.apache.org/licenses/LICENSE-2.0> or the MIT License
+       # <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
+       # option. This file may not be copied, modified, or distributed
+       # except according to those terms.
+       $0
+- scope c-sharp, rust
+       //
+       // ${1:$filename}
+       //
+       // Copyright $year ${2:$fullname} <${3:$email}>
+       //
+       // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+       // https://www.apache.org/licenses/LICENSE-2.0> or the MIT License
+       // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
+       // option. This file may not be copied, modified, or distributed
+       // except according to those terms.
+       $0


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