From 1812fff310e23436e127f8f725b50d0936993b0a Mon Sep 17 00:00:00 2001 From: Ulf Date: Mon, 29 Nov 2010 05:50:08 +0100 Subject: [PATCH] added Copyright --- app_sup.erl | 14 +++++++------- common_SUITE.erl | 20 ++++++++++++++++++++ genserver.erl | 12 ++++++------ modul.erl | 38 ++++++++++++++++++++++++++++++++++++++ modul.template | 2 ++ 5 files changed, 73 insertions(+), 13 deletions(-) create mode 100644 modul.erl create mode 100644 modul.template diff --git a/app_sup.erl b/app_sup.erl index ac0e80f..d639166 100644 --- a/app_sup.erl +++ b/app_sup.erl @@ -1,10 +1,3 @@ -%%% ------------------------------------------------------------------- -%%% Author : {{author}} {{email}} -%%% Description : -%%% -%%% Created : {{date}} -%%% ------------------------------------------------------------------- - %% Copyright 2010 {{author}} %% %% Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,6 +11,13 @@ %% 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. + +%%% ------------------------------------------------------------------- +%%% Author : {{author}} {{email}} +%%% Description : +%%% +%%% Created : {{date}} +%%% ------------------------------------------------------------------- -module({{module}}). -behaviour(application). diff --git a/common_SUITE.erl b/common_SUITE.erl index 82f3b80..0e40eea 100644 --- a/common_SUITE.erl +++ b/common_SUITE.erl @@ -1,3 +1,23 @@ +%% Copyright 2010 {{author}} +%% +%% 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. + +%%% ------------------------------------------------------------------- +%%% Author : {{author}} {{email}} +%%% Description : +%%% +%%% Created : {{date}} +%%% ------------------------------------------------------------------- -module({{module}}_SUITE). -compile(export_all). diff --git a/genserver.erl b/genserver.erl index efe9cc0..9d2268a 100644 --- a/genserver.erl +++ b/genserver.erl @@ -1,9 +1,3 @@ -%%% ------------------------------------------------------------------- -%%% Author : {{author}} {{email}} -%%% Description : -%%% -%%% Created : {{date}} -%%% ------------------------------------------------------------------- %% Copyright 2010 {{author}} %% %% Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,6 +12,12 @@ %% See the License for the specific language governing permissions and %% limitations under the License. +%%% ------------------------------------------------------------------- +%%% Author : {{author}} {{email}} +%%% Description : +%%% +%%% Created : {{date}} +%%% ------------------------------------------------------------------- -module({{srvid}}). -behaviour(gen_server). diff --git a/modul.erl b/modul.erl new file mode 100644 index 0000000..3838d96 --- /dev/null +++ b/modul.erl @@ -0,0 +1,38 @@ +%% Copyright 2010 {{author}} +%% +%% 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. + +%%% ------------------------------------------------------------------- +%%% Author : {{author}} {{email}} +%%% Description : +%%% +%%% Created : {{date}} +%%% ------------------------------------------------------------------- +-module({{modul}}). + +%% -------------------------------------------------------------------- +%% Include files +%% -------------------------------------------------------------------- +-include_lib("eunit/include/eunit.hrl"). + +%% -------------------------------------------------------------------- +%% External exports +%% -------------------------------------------------------------------- + +%% -------------------------------------------------------------------- +%%% Internal functions +%% -------------------------------------------------------------------- + +%% -------------------------------------------------------------------- +%%% Test functions +%% -------------------------------------------------------------------- \ No newline at end of file diff --git a/modul.template b/modul.template new file mode 100644 index 0000000..2941882 --- /dev/null +++ b/modul.template @@ -0,0 +1,2 @@ +{variables, [{modul, "mymodul"}, {author, "Ulf"}, {date,""}, {email, "uaforum1@googlemail.com"}]}. +{template, "modul.erl", "src/{{modul}}.erl"}.