add ffmpeg license

reworked licenses into a single generated file
This commit is contained in:
austinried
2021-09-08 09:32:35 +09:00
parent f686294aab
commit dbc72d5259
7 changed files with 8693 additions and 12 deletions

25
scripts/build-license-html.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -e
dir=$(dirname "$(readlink -f "$0")")
root=$(realpath "$dir/..")
assets="$root/android/app/src/main/assets"
for filename in "$assets"/licenses/*.txt; do
[ -e "$filename" ] || continue
moreLicenses="$moreLicenses"'<hr/><pre style="white-space: pre-wrap;">
'$(cat "$filename")'
</pre>
'
done
echo "$moreLicenses" > "$assets/moreLicenses"
awk '
/<\/body>/ {
system ( "cat \"'"$assets/moreLicenses"'\"" )
}
{ print }
' "$assets/licenses.html" > "$assets/output.html"
mv "$assets/output.html" "$assets/licenses.html"
rm "$assets/moreLicenses"