Skip to content

Commit

Permalink
Update makefile sed command
Browse files Browse the repository at this point in the history
By default be compliant with GNU sed
  • Loading branch information
LeeSmet committed Apr 24, 2020
1 parent b105e66 commit f1db7ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ explorer-edge: release-dir embed-explorer-version
embed-explorer-version:
$(eval TEMPDIR = $(shell mktemp -d))
cp -r ./frontend $(TEMPDIR)
sed -i '' 's/version=0/version=$(fullversion)/g' $(TEMPDIR)/frontend/explorer/public/*.html
sed -i '' 's/version=null/version=\"$(fullversion)\"/g' $(TEMPDIR)/frontend/explorer/public/js/footer.js
sed -i '' 's/versionpath=null/versionpath=\"$(fullversionpath)\"/g' $(TEMPDIR)/frontend/explorer/public/js/footer.js
sed -i 's/version=0/version=$(fullversion)/g' $(TEMPDIR)/frontend/explorer/public/*.html
sed -i 's/version=null/version=\"$(fullversion)\"/g' $(TEMPDIR)/frontend/explorer/public/js/footer.js
sed -i 's/versionpath=null/versionpath=\"$(fullversionpath)\"/g' $(TEMPDIR)/frontend/explorer/public/js/footer.js

release-dir:
[ -d release ] || mkdir release
Expand Down

0 comments on commit f1db7ea

Please sign in to comment.