Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix licenses that "assertain" to MM files. #455

Merged
merged 3 commits into from
Sep 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions TEMPLATE_SDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,12 +761,12 @@ line #1 by compiling the license template:
To ensure no doubts exist on the readers' minds, we recommend that you mark the
copyright notice on the template with a ERB block:

<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
...
...
...
<% end # copyright -%>
-%>

### Determining the generated artifact "effective year"

Expand Down
2 changes: 1 addition & 1 deletion build/terraform
4 changes: 2 additions & 2 deletions products/_bundle/templates/chef/README.md.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file.
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% autogen_exception -%>

Google Cloud Platform for Chef
Expand Down
4 changes: 2 additions & 2 deletions products/_bundle/templates/puppet/README.md.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file.
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% autogen_exception -%>

Google Cloud Platform for Puppet
Expand Down
4 changes: 2 additions & 2 deletions products/bigquery/examples/puppet/dataset.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == "README.md" -%>
<%= compile 'templates/license.erb' -%>

Expand Down
4 changes: 2 additions & 2 deletions products/bigquery/examples/puppet/delete_dataset.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == "README.md" -%>
<%= compile 'templates/license.erb' -%>

Expand Down
4 changes: 2 additions & 2 deletions products/bigquery/examples/puppet/table.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == "README.md" -%>
<%= compile 'templates/license.erb' -%>

Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/address.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/backend_bucket.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/backend_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_address.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_backend_bucket.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_backend_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_disk.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_firewall.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_forwarding_rule.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_global_address.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_health_check.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_http_health_check.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_https_health_check.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_image.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_instance.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% if name != 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_instance_group.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_instance_template.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
4 changes: 2 additions & 2 deletions products/compute/examples/chef/delete_network.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if false # the license inside this if block assertains to this file -%>
<%# The license inside this block applies to this file
# Copyright 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,7 @@
# 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.
<% end -%>
-%>
<% unless name == 'README.md' -%>

<%= compile 'templates/license.erb' -%>
Expand Down
Loading