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
        @@echo "Building" ${JQ}
 
        @@mkdir -p ${DIST_DIR}
-       @@cat ${MODULES} > ${JQ};
+       @@cat ${MODULES} | ${VER} > ${JQ};
 
        @@echo ${JQ} "Built"
        @@echo
 
        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 );
 
 
 /*\r
- * jQuery - New Wave Javascript\r
+ * jQuery @VERSION - New Wave Javascript\r
  *\r
  * Copyright (c) 2006 John Resig (jquery.com)\r
  * Dual licensed under the MIT (MIT-LICENSE.txt)\r
 \r
 jQuery.fn = jQuery.prototype = {\r
        /**\r
-        * The current SVN version of jQuery.\r
+        * The current version of jQuery.\r
         *\r
         * @private\r
         * @property\r
         * @type String\r
         * @cat Core\r
         */\r
-       jquery: "$Rev$",\r
+       jquery: "@VERSION",\r
 \r
        /**\r
         * The number of elements currently matched.\r