-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update copyright notices in code files
- Loading branch information
Showing
16 changed files
with
2,775 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/*! | ||
========================================================= | ||
* © 2024 Ronan LE MEILLAT for SCTG Development | ||
========================================================= | ||
* RUN WITH | ||
* cd webconsole | ||
* npx gulp -f setlicenserust.js licensesRust | ||
*/ | ||
import fs from 'fs' | ||
import gulp from 'gulp' | ||
import gap from 'gulp-append-prepend' | ||
import gulpif from 'gulp-if' | ||
|
||
function checkCopyright(file) { | ||
const content = fs.readFileSync(file.path, 'utf8') | ||
return !content.includes('Ronan LE MEILLAT for SCTG Development') | ||
} | ||
|
||
const copyrightText = `/* | ||
* Copyright© 2024 Ronan LE MEILLAT for SCTG Development, | ||
* Association High Can Fly and Les Ailes du Mont-Blanc | ||
* | ||
* Up2Pay is free software: you can redistribute it and/or modify | ||
* it under the terms of the Affero General Public License version 3 as | ||
* published by the Free Software Foundation. | ||
* | ||
* Up2Pay is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the Affero General Public License | ||
* along with Up2Pay. If not, see <https://www.gnu.org/licenses/agpl-3.0.html>. | ||
*/` | ||
|
||
gulp.task('licenses', async function () { | ||
gulp | ||
.src(['**/*.ts', '**/*.js', '!node_modules/**', '!dist/**', '!**/node_modules/**', '!**/dist/**']) | ||
.pipe(gulpif(checkCopyright, gap.prependText(copyrightText))) | ||
.pipe(gulp.dest('.', { overwrite: true })) | ||
return | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.