aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2006-10-10 00:23:18 +0000
committerJohn Resig <jeresig@gmail.com>2006-10-10 00:23:18 +0000
commit766c3765bd30e6a643eff99da0f1c293aa2897bd (patch)
tree63f945c0f62a0a99b6a21ab9b896a46fd961ac08 /Makefile
parent6cb2e8ee8b801381fba9fcb14078f87de2517926 (diff)
downloadjquery-766c3765bd30e6a643eff99da0f1c293aa2897bd.tar.gz
jquery-766c3765bd30e6a643eff99da0f1c293aa2897bd.zip
Now have accurate version information built into jquery.js - will build it into the docs and test suite next.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 45453f667..a906d0bf8 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,9 @@ JQ = ${DIST_DIR}/jquery.js
JQ_LITE = ${DIST_DIR}/jquery.lite.js
JQ_PACK = ${DIST_DIR}/jquery.pack.js
+JQ_VER = `cat version.txt`
+VER = sed s/@VERSION/${JQ_VER}/
+
JAR = java -jar ${BUILD_DIR}/js.jar
all: jquery lite pack docs test
@@ -31,7 +34,7 @@ ${JQ}: ${MODULES}
@@echo "Building" ${JQ}
@@mkdir -p ${DIST_DIR}
- @@cat ${MODULES} > ${JQ};
+ @@cat ${MODULES} | ${VER} > ${JQ};
@@echo ${JQ} "Built"
@@echo