Skip to content

Commit 8118ddd

Browse files
committed
Update copyright and license files
Also use profiles for erlfmt.
1 parent cea5a19 commit 8118ddd

35 files changed

+753
-34
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
**/_build/**
22
**/deps/**
33
**/mix.lock
4+
**/rebar3.crashdump

erlang/arepl_example/rebar.config

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{erl_opts, [debug_info]}.
221
{deps, []}.
322
{plugins, [
4-
atomvm_rebar3_plugin, erlfmt
23+
atomvm_rebar3_plugin
524
]}.
625
{atomvm_rebar3_plugin, [
726
{packbeam, [prune]}
827
]}.
28+
{profiles, [
29+
{check, [
30+
{plugins, [erlfmt]}
31+
]}
32+
]}.

erlang/arepl_example/src/arepl_example.app.src

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{application, arepl_example, [
221
{description, "An AtomVM application"},
322
{vsn, "0.1.0"},
@@ -7,6 +26,6 @@
726
]},
827
{env, []},
928
{modules, []},
10-
{licenses, ["Apache 2.0"]},
29+
{licenses, ["Apache-2.0"]},
1130
{links, []}
1231
]}.

erlang/blinky/rebar.config

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{erl_opts, [debug_info]}.
221
{deps, []}.
322
{plugins, [
4-
atomvm_rebar3_plugin, erlfmt
23+
atomvm_rebar3_plugin
524
]}.
625
{atomvm_rebar3_plugin, [
726
{packbeam, [prune]}
827
]}.
28+
{profiles, [
29+
{check, [
30+
{plugins, [erlfmt]}
31+
]}
32+
]}.

erlang/blinky/src/blinky.app.src

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{application, blinky, [
221
{description, "An AtomVM application"},
322
{vsn, "0.1.0"},
@@ -7,6 +26,6 @@
726
]},
827
{env, []},
928
{modules, []},
10-
{licenses, ["Apache 2.0"]},
29+
{licenses, ["Apache-2.0"]},
1130
{links, []}
1231
]}.

erlang/deep_sleep/rebar.config

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{erl_opts, [debug_info]}.
221
{deps, []}.
322
{plugins, [
4-
atomvm_rebar3_plugin, erlfmt
23+
atomvm_rebar3_plugin
524
]}.
625
{atomvm_rebar3_plugin, [
726
{packbeam, [prune]}
827
]}.
28+
{profiles, [
29+
{check, [
30+
{plugins, [erlfmt]}
31+
]}
32+
]}.

erlang/deep_sleep/src/deep_sleep.app.src

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{application, deep_sleep, [
221
{description, "An AtomVM application"},
322
{vsn, "0.1.0"},
@@ -7,6 +26,6 @@
726
]},
827
{env, []},
928
{modules, []},
10-
{licenses, ["Apache 2.0"]},
29+
{licenses, ["Apache-2.0"]},
1130
{links, []}
1231
]}.

erlang/esp_nvs/rebar.config

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{erl_opts, [debug_info]}.
221
{deps, []}.
322
{plugins, [
4-
atomvm_rebar3_plugin, erlfmt
23+
atomvm_rebar3_plugin
524
]}.
625
{atomvm_rebar3_plugin, [
726
{packbeam, [prune]}
827
]}.
28+
{profiles, [
29+
{check, [
30+
{plugins, [erlfmt]}
31+
]}
32+
]}.

erlang/esp_nvs/src/esp_nvs.app.src

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{application, esp_nvs, [
221
{description, "An AtomVM application"},
322
{vsn, "0.1.0"},
@@ -7,6 +26,6 @@
726
]},
827
{env, []},
928
{modules, []},
10-
{licenses, ["Apache 2.0"]},
29+
{licenses, ["Apache-2.0"]},
1130
{links, []}
1231
]}.

erlang/gpio_interrupt/rebar.config

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
1+
%
2+
% This file is part of AtomVM.
3+
%
4+
% Copyright 2023 Fred Dushin <fred@dushin.net>
5+
%
6+
% Licensed under the Apache License, Version 2.0 (the "License");
7+
% you may not use this file except in compliance with the License.
8+
% You may obtain a copy of the License at
9+
%
10+
% http://www.apache.org/licenses/LICENSE-2.0
11+
%
12+
% Unless required by applicable law or agreed to in writing, software
13+
% distributed under the License is distributed on an "AS IS" BASIS,
14+
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
% See the License for the specific language governing permissions and
16+
% limitations under the License.
17+
%
18+
% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
19+
%
120
{erl_opts, [debug_info]}.
221
{deps, []}.
322
{plugins, [
4-
atomvm_rebar3_plugin, erlfmt
23+
atomvm_rebar3_plugin
24+
]}.
25+
{atomvm_rebar3_plugin, [
26+
{packbeam, [prune]}
27+
]}.
28+
{profiles, [
29+
{check, [
30+
{plugins, [erlfmt]}
31+
]}
532
]}.

0 commit comments

Comments
 (0)