Skip to content

Commit

Permalink
tests(closure): fix BSD sed calls within compile-devtools (#4736)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Mar 15, 2018
1 parent eb982c8 commit 0b66e34
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lighthouse-core/scripts/compile-against-devtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ yarn devtools "$frontend_path/front_end/"
#
audit2_modulejson_path="$frontend_path/front_end/audits2/module.json"
# remove existing renderer file mentions
sed -i 's/.*\/renderer\/.*//' $audit2_modulejson_path
# remove existing renderer file mentions
sed -i "s/\"Audits2Panel\.js\"/ $files_to_include \"Audits2Panel.js\"/" $audit2_modulejson_path

sed -i='' 's/.*\/renderer\/.*//' $audit2_modulejson_path
# add in our hardcoded renderer file mentions
sed -i='' "s/\"Audits2Panel\.js\"/ $files_to_include \"Audits2Panel.js\"/" $audit2_modulejson_path

# compile, finally
python "$frontend_path/scripts/compile_frontend.py" --protocol-externs-file "$protocol_path/externs/protocol_externs.js"
Expand Down

0 comments on commit 0b66e34

Please sign in to comment.