Skip to content

Commit

Permalink
[BUILD] Update notice generator (#350)
Browse files Browse the repository at this point in the history
Update the notice generator so that builds come with the
expected header

Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla authored May 13, 2021
1 parent 65aa78f commit 439e67a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dev/build/tasks/notice_file_task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const CreateNoticeFile: Task = {
log.info('Generating notice from source');
log.indent(4);
const noticeFromSource = await generateNoticeFromSource({
productName: 'OpenSearch Dashboards',
productName: 'OpenSearch',
directory: build.resolvePath(),
log,
});
Expand Down
6 changes: 5 additions & 1 deletion src/dev/notice/generate_notice_from_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ export async function generateNoticeFromSource({ productName, directory, log }:

let noticeText = '';
noticeText += `${productName}\n`;
noticeText += `Copyright 2012-${new Date().getUTCFullYear()} Elasticsearch B.V.\n`;
noticeText += `Copyright ${new Date().getUTCFullYear()} OpenSearch Contributors\n\n`;
noticeText += `This product includes software developed by Elasticsearch (http://www.elastic.co).\n`;
noticeText += `Copyright 2009-2018 Elasticsearch\n\n`;
noticeText += `This product includes software developed by The Apache Software Foundation (http://www.apache.org/)\n\n`;
noticeText += `This product includes software developed by Joda.org (http://www.joda.org/).\n`;

for (const comment of noticeComments.sort()) {
noticeText += '\n---\n';
Expand Down

0 comments on commit 439e67a

Please sign in to comment.