Skip to content

Commit

Permalink
chore: Fix comment/license issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Oct 25, 2024
1 parent baac389 commit 5abb638
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 18 deletions.
5 changes: 0 additions & 5 deletions Src/Tools/BuildGeneratedArgumentTranslator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
// for details of the expected arguments. The first argument is the generation directory,
// and is specified by BuildGenerated.sh itself.

// This code copies elements from the REST generator. While duplication isn't great,
// this is code that isn't expected to change regularly, and it's cleaner to make this
// small utility standalone than to put it into the generator itself (or have some common
// dependency library).

using ToolUtilities;

if (args.Length == 0)
Expand Down
16 changes: 15 additions & 1 deletion Src/Tools/ToolUtilities/Discovery.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
using Google.Api.Generator.Rest.Models;
// Copyright 2024 Google LLC
//
// 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
//
// https://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.

using Google.Api.Generator.Rest.Models;
using Google.Api.Generator.Utils;
using Google.Apis.Discovery.v1.Data;
using Google.Apis.Json;
Expand Down
18 changes: 17 additions & 1 deletion Src/Tools/UpdateReadmePackageList/PackageTableEntry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@

// Copyright 2024 Google LLC
//
// 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
//
// https://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.

// Generated a list of packages with links to product documentation, NuGet,
// and library reference documentation, within README.md.

using Google.Apis.Discovery.v1.Data;
using ToolUtilities;

Expand Down
11 changes: 0 additions & 11 deletions Src/Tools/UpdateReadmePackageList/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Translates the arguments from BuildGenerated.sh into directories containing
// libraries. This is primarily for the sake of being able to accept Discovery file
// paths as reported by earlier phases of the build pipeline. See BuildGenerated.sh
// for details of the expected arguments. The first argument is the generation directory,
// and is specified by BuildGenerated.sh itself.

// This code copies elements from the REST generator. While duplication isn't great,
// this is code that isn't expected to change regularly, and it's cleaner to make this
// small utility standalone than to put it into the generator itself (or have some common
// dependency library).

using UpdateReadmePackageList;

// Everything before this line is preserved.
Expand Down

0 comments on commit 5abb638

Please sign in to comment.