diff options
| author | 2025-05-09 16:14:10 +0000 | |
|---|---|---|
| committer | 2025-05-09 16:14:10 +0000 | |
| commit | 8c1511a494c1af8ded1f246c865c648fd97bae43 (patch) | |
| tree | 94377b7a52fa7c0f43328bb5ea948197c943bbe2 | |
| parent | [chore] include a monstrous all_licenses.txt in our web assets (#4155) (diff) | |
| download | gotosocial-8c1511a494c1af8ded1f246c865c648fd97bae43.tar.xz | |
[chore] Poke at `bundle_licenses.sh` a bit to make the output slightly easier on the eye (#4159)
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4159
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
| -rwxr-xr-x | scripts/bundle_licenses.sh | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/scripts/bundle_licenses.sh b/scripts/bundle_licenses.sh index a883a0d8f..ae94837d6 100755 --- a/scripts/bundle_licenses.sh +++ b/scripts/bundle_licenses.sh @@ -9,26 +9,36 @@ IFS=' license_filter() { grep -iE '.*/license(\.\w+)?$'; } OUTPUT='./web/assets/all_licenses.txt' -echo '' > "$OUTPUT" # reset output +echo 'The GoToSocial software uses the following dependencies, whose licenses are reproduced in full:' > "$OUTPUT" # reset output +echo >> "$OUTPUT" # Copy over any licenses in our golang dependencies for file in $(find ./vendor | license_filter); do - echo "${file}:" >> "$OUTPUT" - cat "$file" >> "$OUTPUT" - echo >> "$OUTPUT" + echo "----------------------------------------------------------" >> "$OUTPUT" + echo >> "$OUTPUT" + echo "${file}:" >> "$OUTPUT" + echo >> "$OUTPUT" + cat "${file}" >> "$OUTPUT" + echo >> "$OUTPUT" done # Copy over any licenses in our javacsript dependencies for file in $(find ./web/source | license_filter); do - echo "${file}:" >> "$OUTPUT" - cat "$file" >> "$OUTPUT" - echo >> "$OUTPUT" + echo "----------------------------------------------------------" >> "$OUTPUT" + echo >> "$OUTPUT" + echo "${file}:" >> "$OUTPUT" + echo >> "$OUTPUT" + cat "${file}" >> "$OUTPUT" + echo >> "$OUTPUT" done # Copy over misc other licenses for file in ./LICENSE \ ./web/source/nollamasworker/sha256.js; do - echo "${file}:" >> "$OUTPUT" - cat "$file" >> "$OUTPUT" - echo >> "$OUTPUT" + echo "----------------------------------------------------------" >> "$OUTPUT" + echo >> "$OUTPUT" + echo "${file}:" >> "$OUTPUT" + echo >> "$OUTPUT" + cat "${file}" >> "$OUTPUT" + echo >> "$OUTPUT" done |
