]> source.dussan.org Git - jquery.git/commitdiff
Revert "Fix Makefile to use plain sed. Remove unicode trickery"
authorjeresig <jeresig@gmail.com>
Mon, 24 Jan 2011 19:14:55 +0000 (14:14 -0500)
committerjeresig <jeresig@gmail.com>
Mon, 24 Jan 2011 19:14:55 +0000 (14:14 -0500)
This reverts commit 6d358c0cdd4f84884c3d776bad0f48a93908b29b.

Makefile

index 146b5e3c2bf39cb9663069d5c3d5d6a3b8dfd663..c708db5a1455adfe4ee75dfc3bdba5bef1fbff41 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-V ?= 0
+V ?= 0
 
 SRC_DIR = src
 TEST_DIR = test
@@ -96,8 +96,10 @@ min: ${JQ_MIN}
 
 ${JQ_MIN}: ${JQ}
        @@echo "Building" ${JQ_MIN}
-       @@${COMPILER} ${JQ} > ${JQ_MIN}
-       @@sed -i '$ s#^\( \*/\)\(.\+\)#\1\n\2;#' ${JQ_MIN}
+       @@${COMPILER} ${JQ} > ${JQ_MIN}.tmp
+       @@echo ";" >> ${JQ_MIN}.tmp
+       @@sed 's/\*\/(/*\/ʩ(/' ${JQ_MIN}.tmp | tr "ʩ" "\n" > ${JQ_MIN}
+       @@rm -rf ${JQ_MIN}.tmp
 
 clean:
        @@echo "Removing Distribution directory:" ${DIST_DIR}