Skip to content

Commit

Permalink
fix opera make script
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 20, 2018
1 parent 34c7f44 commit b6b1edb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/make-opera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ cp platform/chromium/*.json $DES/
cp LICENSE.txt $DES/

echo "*** uBlock0.opera: concatenating content scripts"
cat $DES/js/vapi-usercss.pseudo.js > /tmp/contentscript.js
cat $DES/js/vapi-usercss.js > /tmp/contentscript.js
echo >> /tmp/contentscript.js
grep -v "^'use strict';$" $DES/js/vapi-usercss.real.js >> /tmp/contentscript.js
echo >> /tmp/contentscript.js
grep -v "^'use strict';$" $DES/js/vapi-usercss.pseudo.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.pseudo.js
rm $DES/js/vapi-usercss.js
rm $DES/js/vapi-usercss.real.js
rm $DES/js/vapi-usercss.pseudo.js

# Opera-specific
cp platform/opera/manifest.json $DES/
Expand Down

0 comments on commit b6b1edb

Please sign in to comment.