Skip to content

Commit

Permalink
Update copyright and license files
Browse files Browse the repository at this point in the history
Also use profiles for erlfmt.
  • Loading branch information
fadushin committed Nov 23, 2023
1 parent cea5a19 commit 8118ddd
Show file tree
Hide file tree
Showing 35 changed files with 753 additions and 34 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/_build/**
**/deps/**
**/mix.lock
**/rebar3.crashdump
26 changes: 25 additions & 1 deletion erlang/arepl_example/rebar.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{erl_opts, [debug_info]}.
{deps, []}.
{plugins, [
atomvm_rebar3_plugin, erlfmt
atomvm_rebar3_plugin
]}.
{atomvm_rebar3_plugin, [
{packbeam, [prune]}
]}.
{profiles, [
{check, [
{plugins, [erlfmt]}
]}
]}.
21 changes: 20 additions & 1 deletion erlang/arepl_example/src/arepl_example.app.src
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{application, arepl_example, [
{description, "An AtomVM application"},
{vsn, "0.1.0"},
Expand All @@ -7,6 +26,6 @@
]},
{env, []},
{modules, []},
{licenses, ["Apache 2.0"]},
{licenses, ["Apache-2.0"]},
{links, []}
]}.
26 changes: 25 additions & 1 deletion erlang/blinky/rebar.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{erl_opts, [debug_info]}.
{deps, []}.
{plugins, [
atomvm_rebar3_plugin, erlfmt
atomvm_rebar3_plugin
]}.
{atomvm_rebar3_plugin, [
{packbeam, [prune]}
]}.
{profiles, [
{check, [
{plugins, [erlfmt]}
]}
]}.
21 changes: 20 additions & 1 deletion erlang/blinky/src/blinky.app.src
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{application, blinky, [
{description, "An AtomVM application"},
{vsn, "0.1.0"},
Expand All @@ -7,6 +26,6 @@
]},
{env, []},
{modules, []},
{licenses, ["Apache 2.0"]},
{licenses, ["Apache-2.0"]},
{links, []}
]}.
26 changes: 25 additions & 1 deletion erlang/deep_sleep/rebar.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{erl_opts, [debug_info]}.
{deps, []}.
{plugins, [
atomvm_rebar3_plugin, erlfmt
atomvm_rebar3_plugin
]}.
{atomvm_rebar3_plugin, [
{packbeam, [prune]}
]}.
{profiles, [
{check, [
{plugins, [erlfmt]}
]}
]}.
21 changes: 20 additions & 1 deletion erlang/deep_sleep/src/deep_sleep.app.src
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{application, deep_sleep, [
{description, "An AtomVM application"},
{vsn, "0.1.0"},
Expand All @@ -7,6 +26,6 @@
]},
{env, []},
{modules, []},
{licenses, ["Apache 2.0"]},
{licenses, ["Apache-2.0"]},
{links, []}
]}.
26 changes: 25 additions & 1 deletion erlang/esp_nvs/rebar.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{erl_opts, [debug_info]}.
{deps, []}.
{plugins, [
atomvm_rebar3_plugin, erlfmt
atomvm_rebar3_plugin
]}.
{atomvm_rebar3_plugin, [
{packbeam, [prune]}
]}.
{profiles, [
{check, [
{plugins, [erlfmt]}
]}
]}.
21 changes: 20 additions & 1 deletion erlang/esp_nvs/src/esp_nvs.app.src
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{application, esp_nvs, [
{description, "An AtomVM application"},
{vsn, "0.1.0"},
Expand All @@ -7,6 +26,6 @@
]},
{env, []},
{modules, []},
{licenses, ["Apache 2.0"]},
{licenses, ["Apache-2.0"]},
{links, []}
]}.
29 changes: 28 additions & 1 deletion erlang/gpio_interrupt/rebar.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{erl_opts, [debug_info]}.
{deps, []}.
{plugins, [
atomvm_rebar3_plugin, erlfmt
atomvm_rebar3_plugin
]}.
{atomvm_rebar3_plugin, [
{packbeam, [prune]}
]}.
{profiles, [
{check, [
{plugins, [erlfmt]}
]}
]}.
21 changes: 20 additions & 1 deletion erlang/gpio_interrupt/src/gpio_interrupt.app.src
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{application, gpio_interrupt, [
{description, "An AtomVM application"},
{vsn, "0.1.0"},
Expand All @@ -7,6 +26,6 @@
]},
{env, []},
{modules, []},
{licenses, ["Apache 2.0"]},
{licenses, ["Apache-2.0"]},
{links, []}
]}.
29 changes: 28 additions & 1 deletion erlang/hello_world/rebar.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{erl_opts, [debug_info]}.
{deps, []}.
{plugins, [
atomvm_rebar3_plugin, erlfmt
atomvm_rebar3_plugin
]}.
{atomvm_rebar3_plugin, [
{packbeam, [prune]}
]}.
{profiles, [
{check, [
{plugins, [erlfmt]}
]}
]}.
21 changes: 20 additions & 1 deletion erlang/hello_world/src/hello_world.app.src
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%
% This file is part of AtomVM.
%
% Copyright 2023 Fred Dushin <fred@dushin.net>
%
% 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 OR LGPL-2.1-or-later
%
{application, hello_world, [
{description, "An AtomVM application"},
{vsn, "0.1.0"},
Expand All @@ -7,6 +26,6 @@
]},
{env, []},
{modules, []},
{licenses, ["Apache 2.0"]},
{licenses, ["Apache-2.0"]},
{links, []}
]}.
Loading

0 comments on commit 8118ddd

Please sign in to comment.