Skip to content

Commit 8a80a81

Browse files
committed
build: generalize scripts to auto-update copyright year
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent b0d1c0e commit 8a80a81

File tree

42 files changed

+105
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+105
-42
lines changed

lib/node_modules/@stdlib/blas/base/wasm/ccopy/scripts/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @license Apache-2.0
55
*
6-
* Copyright (c) 2024 The Stdlib Authors.
6+
* Copyright (c) 2025 The Stdlib Authors.
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ var resolve = require( 'path' ).resolve;
2626
var readFile = require( '@stdlib/fs/read-file' ).sync;
2727
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2828
var replace = require( '@stdlib/string/replace' );
29+
var currentYear = require( '@stdlib/time/current-year' );
2930

3031

3132
// VARIABLES //
@@ -39,6 +40,7 @@ var opts = {
3940
};
4041

4142
var PLACEHOLDER = '{{WASM_BASE64}}';
43+
var YEAR = '{{YEAR}}';
4244

4345

4446
// MAIN //
@@ -55,6 +57,7 @@ function main() {
5557
wasm = readFile( wpath );
5658
tmpl = readFile( tpath, opts );
5759

60+
tmpl = replace( tmpl, YEAR, currentYear().toString() );
5861
tmpl = replace( tmpl, PLACEHOLDER, wasm.toString( 'base64' ) );
5962

6063
writeFile( opath, tmpl, opts );

lib/node_modules/@stdlib/blas/base/wasm/ccopy/scripts/template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) {{YEAR}} The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/blas/base/wasm/cscal/scripts/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @license Apache-2.0
55
*
6-
* Copyright (c) 2024 The Stdlib Authors.
6+
* Copyright (c) 2025 The Stdlib Authors.
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ var resolve = require( 'path' ).resolve;
2626
var readFile = require( '@stdlib/fs/read-file' ).sync;
2727
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2828
var replace = require( '@stdlib/string/replace' );
29+
var currentYear = require( '@stdlib/time/current-year' );
2930

3031

3132
// VARIABLES //
@@ -39,6 +40,7 @@ var opts = {
3940
};
4041

4142
var PLACEHOLDER = '{{WASM_BASE64}}';
43+
var YEAR = '{{YEAR}}';
4244

4345

4446
// MAIN //
@@ -55,6 +57,7 @@ function main() {
5557
wasm = readFile( wpath );
5658
tmpl = readFile( tpath, opts );
5759

60+
tmpl = replace( tmpl, YEAR, currentYear().toString() );
5861
tmpl = replace( tmpl, PLACEHOLDER, wasm.toString( 'base64' ) );
5962

6063
writeFile( opath, tmpl, opts );

lib/node_modules/@stdlib/blas/base/wasm/cscal/scripts/template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) {{YEAR}} The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/blas/base/wasm/csrot/scripts/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @license Apache-2.0
55
*
6-
* Copyright (c) 2024 The Stdlib Authors.
6+
* Copyright (c) 2025 The Stdlib Authors.
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ var resolve = require( 'path' ).resolve;
2626
var readFile = require( '@stdlib/fs/read-file' ).sync;
2727
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2828
var replace = require( '@stdlib/string/replace' );
29+
var currentYear = require( '@stdlib/time/current-year' );
2930

3031

3132
// VARIABLES //
@@ -39,6 +40,7 @@ var opts = {
3940
};
4041

4142
var PLACEHOLDER = '{{WASM_BASE64}}';
43+
var YEAR = '{{YEAR}}';
4244

4345

4446
// MAIN //
@@ -55,6 +57,7 @@ function main() {
5557
wasm = readFile( wpath );
5658
tmpl = readFile( tpath, opts );
5759

60+
tmpl = replace( tmpl, YEAR, currentYear().toString() );
5861
tmpl = replace( tmpl, PLACEHOLDER, wasm.toString( 'base64' ) );
5962

6063
writeFile( opath, tmpl, opts );

lib/node_modules/@stdlib/blas/base/wasm/csrot/scripts/template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) {{YEAR}} The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/blas/base/wasm/cswap/scripts/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @license Apache-2.0
55
*
6-
* Copyright (c) 2024 The Stdlib Authors.
6+
* Copyright (c) 2025 The Stdlib Authors.
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ var resolve = require( 'path' ).resolve;
2626
var readFile = require( '@stdlib/fs/read-file' ).sync;
2727
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2828
var replace = require( '@stdlib/string/replace' );
29+
var currentYear = require( '@stdlib/time/current-year' );
2930

3031

3132
// VARIABLES //
@@ -39,6 +40,7 @@ var opts = {
3940
};
4041

4142
var PLACEHOLDER = '{{WASM_BASE64}}';
43+
var YEAR = '{{YEAR}}';
4244

4345

4446
// MAIN //
@@ -55,6 +57,7 @@ function main() {
5557
wasm = readFile( wpath );
5658
tmpl = readFile( tpath, opts );
5759

60+
tmpl = replace( tmpl, YEAR, currentYear().toString() );
5861
tmpl = replace( tmpl, PLACEHOLDER, wasm.toString( 'base64' ) );
5962

6063
writeFile( opath, tmpl, opts );

lib/node_modules/@stdlib/blas/base/wasm/cswap/scripts/template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) {{YEAR}} The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/blas/base/wasm/dasum/scripts/build.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @license Apache-2.0
55
*
6-
* Copyright (c) 2024 The Stdlib Authors.
6+
* Copyright (c) 2025 The Stdlib Authors.
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ var resolve = require( 'path' ).resolve;
2626
var readFile = require( '@stdlib/fs/read-file' ).sync;
2727
var writeFile = require( '@stdlib/fs/write-file' ).sync;
2828
var replace = require( '@stdlib/string/replace' );
29+
var currentYear = require( '@stdlib/time/current-year' );
2930

3031

3132
// VARIABLES //
@@ -39,6 +40,7 @@ var opts = {
3940
};
4041

4142
var PLACEHOLDER = '{{WASM_BASE64}}';
43+
var YEAR = '{{YEAR}}';
4244

4345

4446
// MAIN //
@@ -55,6 +57,7 @@ function main() {
5557
wasm = readFile( wpath );
5658
tmpl = readFile( tpath, opts );
5759

60+
tmpl = replace( tmpl, YEAR, currentYear().toString() );
5861
tmpl = replace( tmpl, PLACEHOLDER, wasm.toString( 'base64' ) );
5962

6063
writeFile( opath, tmpl, opts );

lib/node_modules/@stdlib/blas/base/wasm/dasum/scripts/template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2024 The Stdlib Authors.
4+
* Copyright (c) {{YEAR}} The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)