Skip to content
Permalink
Browse files

Now have accurate version information built into jquery.js - will bui…

…ld it into the docs and test suite next.
  • Loading branch information
jeresig committed Oct 10, 2006
1 parent 6cb2e8e commit 766c3765bd30e6a643eff99da0f1c293aa2897bd
Showing with 9 additions and 5 deletions.
  1. +4 −1 Makefile
  2. +1 −1 build/docs/docs.js
  3. +3 −3 src/jquery/jquery.js
  4. +1 −0 version.txt
@@ -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
@@ -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 );

@@ -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,15 +190,15 @@ var $ = jQuery;

jQuery.fn = jQuery.prototype = {
/**
* The current SVN version of jQuery.
* The current version of jQuery.
*
* @private
* @property
* @name jquery
* @type String
* @cat Core
*/
jquery: "$Rev$",
jquery: "@VERSION",

/**
* The number of elements currently matched.
@@ -0,0 +1 @@
1.0.2

0 comments on commit 766c376

Please sign in to comment.
You can’t perform that action at this time.