From 3dd31fad74fe802b1a3a653dfb8a8ff49da30779 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 21 Mar 2021 18:08:40 +0100 Subject: Makefile: Ensure Mousetrap license is commented Forgot to comment out the Mousetrap license in the final build file. --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 28077ce..71c081c 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,18 @@ all: peniquitous.user.js build: mkdir -p $@ +build/mousetrap-license.js: node_modules/mousetrap/LICENSE + sed \ + -e 's,^\(.\),// \1,' \ + -e 's,^$$,//,' \ + $< \ + > $@ + build/key-event.js: node_modules/mousetrap/tests/libs/key-event.js \ -node_modules/mousetrap/LICENSE \ +build/mousetrap-license.js \ | build sed -e '/^(function/d' -e '$$d' $< > $@ - cat node_modules/mousetrap/LICENSE $@ > $@.tmp + cat build/mousetrap-license.js $@ > $@.tmp mv $@.tmp $@ build/peniquitous.js: peniquitous.js | build -- cgit v1.2.3