diff --git a/config/configuration.yml.example b/config/configuration.yml.example index b249835a3e6..c780d4ff54a 100644 --- a/config/configuration.yml.example +++ b/config/configuration.yml.example @@ -1,3 +1,14 @@ +#-- copyright +# OpenProject is a project management system. +# +# Copyright (C) 2012-2013 the OpenProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + # = ChiliProject configuration file # # Each environment has it's own configuration options. If you are only diff --git a/config/database.yml.example b/config/database.yml.example index 4436b7149b3..68596cdeab7 100644 --- a/config/database.yml.example +++ b/config/database.yml.example @@ -1,3 +1,14 @@ +#-- copyright +# OpenProject is a project management system. +# +# Copyright (C) 2012-2013 the OpenProject Team +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License version 3. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + # MySQL (default setup). production: diff --git a/lib/tasks/copyright.rake b/lib/tasks/copyright.rake index a3cdc4a2dd1..e5d68498b8f 100644 --- a/lib/tasks/copyright.rake +++ b/lib/tasks/copyright.rake @@ -127,6 +127,11 @@ namespace :copyright do rewrite_copyright("yml", [], :rb, args[:arg1]) end + desc "Update the copyright on .yml.example source files" + task :update_yml_example, :arg1 do |task, args| + rewrite_copyright("yml.example", [], :rb, args[:arg1]) + end + desc "Update the copyright on .rjs source files" task :update_rjs, :arg1 do |task, args| rewrite_copyright("rjs", [], :rb, args[:arg1]) @@ -234,7 +239,7 @@ namespace :copyright do task :update, :arg1 do |task, args| %w{ css rb js js_erb css_erb html_erb json_erb text_erb atom_builder api_rsb rake - feature rdoc rjs md sql html yml special_files + feature rdoc rjs md sql html yml yml_example special_files }.each do |t| Rake::Task['copyright:update_' + t.to_s].invoke(args[:arg1]) end