Now have accurate version information built into jquery.js - will build it into the docs and test suite next.

This commit is contained in:
John Resig 2006-10-10 00:23:18 +00:00
parent 6cb2e8ee8b
commit 766c3765bd
4 changed files with 9 additions and 5 deletions

View file

@ -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

View file

@ -17,7 +17,7 @@ function output( c, n ) {
Object.toXML.force = { desc: 1, code: 1, before: 1, result: 1 };
var xml = Object.toXML( n == "docs" ? { method: c } : c, "docs" );
writeFile( dir + "/data/jquery-" + n + "-xml.xml",
"<?xml version='1.0' encoding='ISO-8859-1'?>\n" + xml );

View file

@ -1,5 +1,5 @@
/*
* jQuery - New Wave Javascript
* jQuery @VERSION - New Wave Javascript
*
* Copyright (c) 2006 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
@ -190,7 +190,7 @@ var $ = jQuery;
jQuery.fn = jQuery.prototype = {
/**
* The current SVN version of jQuery.
* The current version of jQuery.
*
* @private
* @property
@ -198,7 +198,7 @@ jQuery.fn = jQuery.prototype = {
* @type String
* @cat Core
*/
jquery: "$Rev$",
jquery: "@VERSION",
/**
* The number of elements currently matched.

1
version.txt Normal file
View file

@ -0,0 +1 @@
1.0.2