Prechádzať zdrojové kódy

scripts: add SPDX-License-Identifier in files (#6215)

CleanMachine1 3 rokov pred
rodič
commit
6637acf662

+ 2 - 0
scripts/build-index.js

@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: MIT
+
 'use strict';
 
 const glob = require('glob');

+ 1 - 0
scripts/build.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+# SPDX-License-Identifier: MIT
 
 # This script is executed by GitHub Actions for every successful push (on any branch, PR or not).
 set -ex

+ 1 - 0
scripts/check-pr.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+# SPDX-License-Identifier: MIT
 
 # This script is executed by GitHub Actions for every pull request opened.
 # It currently accomplishes the following objectives (for English pages only):

+ 1 - 0
scripts/deploy.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+# SPDX-License-Identifier: MIT
 
 # This script is executed by GitHub Actions when a PR is merged (i.e. in the `deploy` step).
 set -ex

+ 2 - 0
scripts/pdf/basic.css

@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: MIT */
+
 @font-face {
     font-family: "PT Serif";
     src: url("pt-serif-web-regular.ttf") format("truetype");

+ 1 - 0
scripts/pdf/render.py

@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: MIT
 
 """
 A Python script to generate a single PDF document with all the `tldr` pages. It works by generating

+ 2 - 0
scripts/pdf/solarized-dark.css

@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: MIT */
+
 code {
   color: #b58900;
 }

+ 2 - 0
scripts/pdf/solarized-light.css

@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: MIT */
+
 code {
   color: #dc322f
 }

+ 1 - 0
scripts/send-to-bot.py

@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: MIT
 
 import os
 import sys

+ 2 - 0
scripts/set-more-info-link.py

@@ -1,4 +1,6 @@
 #!/usr/bin/env python3
+# SPDX-License-Identifier: MIT
+
 import argparse
 import os
 import re

+ 1 - 0
scripts/test.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+# SPDX-License-Identifier: MIT
 
 # This script is executed by GitHub Actions for every successful push (on any branch, PR or not).
 # It runs some basic tests on pages. If the build is also a PR, additional