Skip to content

Commit

Permalink
fixed issue #33 supporting both BSD and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelduran committed Jul 3, 2012
1 parent b7525a3 commit 4031bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ YSLOW_LICENSE := $(SRC_COMMON)/license
YUI_LIB := $(SRC_YUI)/build YUI_LIB := $(SRC_YUI)/build
IMG := img IMG := img
YUICOMPRESSOR := java -jar ~/bin/yuicompressor-2.4.7.jar YUICOMPRESSOR := java -jar ~/bin/yuicompressor-2.4.7.jar
TAC = $(shell which tac || echo 'tail -r')


.PHONY: bookmarklet chrome firefox har nodejs opera safari wsh rhino phantomjs nodeserver .PHONY: bookmarklet chrome firefox har nodejs opera safari wsh rhino phantomjs nodeserver


Expand Down Expand Up @@ -362,7 +363,7 @@ phantomjs:
$(SRC_COMMON)/renderers.js \ $(SRC_COMMON)/renderers.js \
$(SRC_COMMON)/peeler.js \ $(SRC_COMMON)/peeler.js \
$(SRC_COMMON)/peeler-bm-ch-ph.js; \ $(SRC_COMMON)/peeler-bm-ch-ph.js; \
tail -r $(SRC_PHANTOMJS)/controller.js | sed '/YSLOW HERE/q' | tail -r ) | sed '/YSLOW HERE/d' \ $(TAC) $(SRC_PHANTOMJS)/controller.js | sed '/YSLOW HERE/q' | $(TAC) ) | sed '/YSLOW HERE/d' \
> $(BUILD_PHANTOMJS)/yslow.js > $(BUILD_PHANTOMJS)/yslow.js
@sed -i -e "s/{{YSLOW_VERSION}}/$(YSLOW_VERSION)/" $(BUILD_PHANTOMJS)/yslow.js @sed -i -e "s/{{YSLOW_VERSION}}/$(YSLOW_VERSION)/" $(BUILD_PHANTOMJS)/yslow.js
@echo "done" @echo "done"
Expand Down

0 comments on commit 4031bc1

Please sign in to comment.