aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorawgy <josh.varner@gmail.com>2011-02-12 03:35:41 +0100
committerAnton M <obhvsbypqghgc@gmail.com>2011-02-12 13:53:04 +0100
commit2862f589db08b92c7b1f78fa961aff7354027c0b (patch)
tree3b767a5b24876098b63e264b52ccaf7c75aa2728 /Makefile
parent3548ffaee244af2bd5e28e91ebfaa995adab93a7 (diff)
downloadjquery-2862f589db08b92c7b1f78fa961aff7354027c0b.tar.gz
jquery-2862f589db08b92c7b1f78fa961aff7354027c0b.zip
Remove sed from post-build code, due to portability issues between GNU and BSD versions.
Follow up to ba43d37394b6018779d9a668c548e11579cd424a which apparently didn't fix the problem completly on Mac OS X.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 48a885da2..bf41bccc6 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ DIST_DIR = ${PREFIX}/dist
JS_ENGINE ?= `which node nodejs`
COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe
+POST_COMPILER = ${JS_ENGINE} ${BUILD_DIR}/post-compile.js
BASE_FILES = ${SRC_DIR}/core.js\
${SRC_DIR}/support.js\
@@ -106,8 +107,8 @@ ${JQ_MIN}: jquery
@@if test ! -z ${JS_ENGINE}; then \
echo "Minifying jQuery" ${JQ_MIN}; \
${COMPILER} ${JQ} > ${JQ_MIN}.tmp; \
- sed '$ s#^\( \*/\)\(.\+\)#\1\n\2;#' ${JQ_MIN}.tmp > ${JQ_MIN}; \
- rm -rf ${JQ_MIN}.tmp; \
+ ${POST_COMPILER} ${JQ_MIN}.tmp > ${JQ_MIN}; \
+ rm -f ${JQ_MIN}.tmp; \
else \
echo "You must have NodeJS installed in order to minify jQuery."; \
fi