From 173feca616980f4f8e9b38a0dee4c4d0fd30e3e6 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 8 May 2020 23:56:10 +0200 Subject: Makefile: Always remove license headers from all JS files It turns out that the way I formulated it before, it wouldn't always strip the license headers from all files. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 080c29e..1f9b699 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ build/%.js: src/%.ts $(TSC) @# Remove license headers - perl -ni -e 'print unless ($$record_count = /^\/\/ Copyright/ .. /^(?!\/\/)/ and $$record_count !~ /E0$$/)' $@ + perl -ni -e 'print unless ($$record_count = /^\/\/ Copyright/ .. /^(?!\/\/)/ and $$record_count !~ /E0$$/)' build/*.js netflix-immersive.user.js: build/index.js build/*.js src/userscript-header.txt $(BROWSERIFY) $< -o $@ -- cgit v1.2.3