Skip to content

Commit

Permalink
Also add seperate COPYRIGHT to npm package
Browse files Browse the repository at this point in the history
Might perhaps not be strictly required, but this makes it easier to
find the copyright attributions for those who obtain the npm package.
Prepending the info to the main script remains necessary to also ship
the notices for every of the final server-to-client distributions.
  • Loading branch information
TheOneric committed Aug 4, 2021
1 parent 1b461fa commit ad27f1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ EMCC_COMMON_ARGS = \
#--memory-init-file 0 \
#-s OUTLINING_LIMIT=20000 \
dist: src/subtitles-octopus-worker.bc dist/js/subtitles-octopus-worker.js dist/js/subtitles-octopus-worker-legacy.js dist/js/subtitles-octopus.js
dist: src/subtitles-octopus-worker.bc dist/js/subtitles-octopus-worker.js dist/js/subtitles-octopus-worker-legacy.js dist/js/subtitles-octopus.js dist/js/COPYRIGHT

dist/js/subtitles-octopus-worker.js: src/subtitles-octopus-worker.bc src/pre-worker.js src/SubOctpInterface.js src/post-worker.js build/lib/brotli/js/decode.js
mkdir -p dist/js
Expand Down Expand Up @@ -361,6 +361,9 @@ dist/license/all: dist/license/subtitlesoctopus $(addprefix dist/license/, $(LIB
build/license_lint.awk dist/license/all.tmp build/license_fullnotice
cat dist/license/all.tmp build/license_fullnotice > dist/license/all

dist/js/COPYRIGHT: dist/license/all
cp "$<" "$@"

# Clean Tasks

clean: clean-dist clean-libs clean-octopus
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "libass Subtitle Renderer and Parser library for browsers",
"main": "dist/js/subtitles-octopus.js",
"files": [
"dist/js/subtitles*"
"dist/js/subtitles*",
"dist/js/COPYRIGHT"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down

0 comments on commit ad27f1a

Please sign in to comment.