Skip to content

Commit

Permalink
faust-mode: improve license chooser (#470)
Browse files Browse the repository at this point in the history
* faust-mode: improve licenses chooser

Some of them where incorrect or depreciated.
See https://spdx.org/licenses/

* faust-mode: add copyright to header
  • Loading branch information
magnetophon authored Jan 5, 2024
1 parent d80b2ff commit 56dda44
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 14 deletions.
26 changes: 19 additions & 7 deletions snippets/faust-mode/declarelicense
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,25 @@
# --
declare license "${1:$$
(yas-choose-value '(
"AGPLv3"
"Apache"
"BSD 2-clause"
"BSD 3-clause"
"GPLv2"
"GPLv3"
"LGPLv3"
"AGPL-3.0-only"
"AGPL-3.0-or-later"
"Apache-2.0"
"BSD-2-Clause"
"BSD-3-Clause"
"CC-BY-4.0"
"CC0-1.0"
"EPL-2.0"
"GPL-2.0-only"
"GPL-2.0-or-later"
"GPL-3.0-only"
"GPL-3.0-or-later"
"ISC"
"LGPL-2.1-only"
"LGPL-2.1-or-later"
"LGPL-3.0-only"
"LGPL-3.0-or-later"
"MIT"
"MPL-2.0"
"Unlicense"
))}";
$0
27 changes: 20 additions & 7 deletions snippets/faust-mode/header
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,26 @@ declare version "${2:0.1}";
declare author "$3";
declare license "${4:$$
(yas-choose-value '(
"AGPLv3"
"Apache"
"BSD 2-clause"
"BSD 3-clause"
"GPLv2"
"GPLv3"
"LGPLv3"
"AGPL-3.0-only"
"AGPL-3.0-or-later"
"Apache-2.0"
"BSD-2-Clause"
"BSD-3-Clause"
"CC-BY-4.0"
"CC0-1.0"
"EPL-2.0"
"GPL-2.0-only"
"GPL-2.0-or-later"
"GPL-3.0-only"
"GPL-3.0-or-later"
"ISC"
"LGPL-2.1-only"
"LGPL-2.1-or-later"
"LGPL-3.0-only"
"LGPL-3.0-or-later"
"MIT"
"MPL-2.0"
"Unlicense"
))}";
declare copyright "${5:starting year} - ${6:`(format-time-string "%Y")`$0}, ${7:$3}";
$0

0 comments on commit 56dda44

Please sign in to comment.