From dfcfa5ab9e113fd5429f95102003c3a1d718f047 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 22 Dec 2017 09:57:28 -0500 Subject: [PATCH] fix shell script for Opera --- tools/make-opera.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/make-opera.sh b/tools/make-opera.sh index 596b7ce82..5dd9c91e3 100755 --- a/tools/make-opera.sh +++ b/tools/make-opera.sh @@ -23,6 +23,13 @@ cp platform/chromium/*.html $DES/ cp platform/chromium/*.json $DES/ cp LICENSE.txt $DES/ +echo "*** uBlock0.opera: concatenating content scripts" +cat $DES/js/vapi-usercss.js > /tmp/contentscript.js +echo >> /tmp/contentscript.js +grep -v "^'use strict';$" $DES/js/contentscript.js >> /tmp/contentscript.js +mv /tmp/contentscript.js $DES/js/contentscript.js +rm $DES/js/vapi-usercss.js + # Opera-specific cp platform/opera/manifest.json $DES/ rm -r $DES/_locales/cv