mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 14:32:25 -05:00
[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>
This commit is contained in:
parent
cfa83fb44c
commit
8c1511a494
1 changed files with 20 additions and 10 deletions
|
|
@ -9,26 +9,36 @@ IFS='
|
||||||
license_filter() { grep -iE '.*/license(\.\w+)?$'; }
|
license_filter() { grep -iE '.*/license(\.\w+)?$'; }
|
||||||
|
|
||||||
OUTPUT='./web/assets/all_licenses.txt'
|
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
|
# Copy over any licenses in our golang dependencies
|
||||||
for file in $(find ./vendor | license_filter); do
|
for file in $(find ./vendor | license_filter); do
|
||||||
echo "${file}:" >> "$OUTPUT"
|
echo "----------------------------------------------------------" >> "$OUTPUT"
|
||||||
cat "$file" >> "$OUTPUT"
|
echo >> "$OUTPUT"
|
||||||
echo >> "$OUTPUT"
|
echo "${file}:" >> "$OUTPUT"
|
||||||
|
echo >> "$OUTPUT"
|
||||||
|
cat "${file}" >> "$OUTPUT"
|
||||||
|
echo >> "$OUTPUT"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Copy over any licenses in our javacsript dependencies
|
# Copy over any licenses in our javacsript dependencies
|
||||||
for file in $(find ./web/source | license_filter); do
|
for file in $(find ./web/source | license_filter); do
|
||||||
echo "${file}:" >> "$OUTPUT"
|
echo "----------------------------------------------------------" >> "$OUTPUT"
|
||||||
cat "$file" >> "$OUTPUT"
|
echo >> "$OUTPUT"
|
||||||
echo >> "$OUTPUT"
|
echo "${file}:" >> "$OUTPUT"
|
||||||
|
echo >> "$OUTPUT"
|
||||||
|
cat "${file}" >> "$OUTPUT"
|
||||||
|
echo >> "$OUTPUT"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Copy over misc other licenses
|
# Copy over misc other licenses
|
||||||
for file in ./LICENSE \
|
for file in ./LICENSE \
|
||||||
./web/source/nollamasworker/sha256.js; do
|
./web/source/nollamasworker/sha256.js; do
|
||||||
echo "${file}:" >> "$OUTPUT"
|
echo "----------------------------------------------------------" >> "$OUTPUT"
|
||||||
cat "$file" >> "$OUTPUT"
|
echo >> "$OUTPUT"
|
||||||
echo >> "$OUTPUT"
|
echo "${file}:" >> "$OUTPUT"
|
||||||
|
echo >> "$OUTPUT"
|
||||||
|
cat "${file}" >> "$OUTPUT"
|
||||||
|
echo >> "$OUTPUT"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue