Skip to content

Commit e4ea418

Browse files
authored
Ensure notices build command only creates a NOTICE.txt (#84)
1 parent 9a8ee60 commit e4ea418

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

NOTICE.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,30 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
307307
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
308308
SOFTWARE.
309309

310+
License notice for ini-parser-netstandard (v2.5.2)
311+
------------------------------------
312+
The MIT License (MIT)
313+
314+
Copyright (c) 2008 Ricardo Amores Hernández
315+
316+
Permission is hereby granted, free of charge, to any person obtaining a copy of
317+
this software and associated documentation files (the "Software"), to deal in
318+
the Software without restriction, including without limitation the rights to
319+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
320+
the Software, and to permit persons to whom the Software is furnished to do so,
321+
subject to the following conditions:
322+
323+
The above copyright notice and this permission notice shall be included in all
324+
copies or substantial portions of the Software.
325+
326+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
327+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
328+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
329+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
330+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
331+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
332+
333+
310334
License notice for Markdig (v0.37.0)
311335
------------------------------------
312336
Copyright (c) 2018-2019, Alexandre Mutel

build/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ dotnet publish {source} -c Release -o .artifacts/publish \
3333

3434
app.Add("notices", async Task<int> (Cancel ctx) =>
3535
{
36+
var packages = await "dotnet thirdlicense --project src/docs-builder/docs-builder.csproj --output NOTICE.txt";
37+
var packageLines = packages.Split(Environment.NewLine).Where(l=>l.StartsWith("+"));
38+
3639
await File.WriteAllTextAsync("NOTICE.txt",
3740
$"""
3841
Elastic Documentation Tooling
@@ -41,8 +44,6 @@ Copyright 2024-{DateTime.UtcNow.Year} Elasticsearch B.V.
4144
4245
""", ctx);
4346

44-
var packages = await "dotnet thirdlicense --project src/docs-builder/docs-builder.csproj";
45-
var packageLines = packages.Split(Environment.NewLine).Where(l=>l.StartsWith("+"));
4647

4748
Console.WriteLine("Package lines:");
4849
foreach (var line in packageLines)

0 commit comments

Comments
 (0)