diff --git a/Makefile b/Makefile index 2d344c6a..beb46868 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,9 @@ VER = sed s/@VERSION/${JQ_VER}/ JAR = java -jar ${BUILD_DIR}/js.jar MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar +DATE=`svn info . | grep Date: | sed 's/.*: //g'` +REV=`svn info . | grep Rev: | sed 's/.*: //g'` + all: jquery lite min pack speed @@echo "jQuery build complete." @@ -62,9 +65,13 @@ jquery: ${DIST_DIR} ${JQ} ${JQ}: ${MODULES} @@echo "Building" ${JQ} + echo "${DATE}" @@mkdir -p ${DIST_DIR} - @@cat ${MODULES} | ${VER} > ${JQ}; + @@cat ${MODULES} | \ + sed 's/Date:./&'"${DATE}"'/' | \ + sed 's/Revision:./&'"${REV}"'/' | \ + ${VER} > ${JQ}; @@echo ${JQ} "Built" @@echo diff --git a/src/core.js b/src/core.js index 9347689a..4eab2cde 100644 --- a/src/core.js +++ b/src/core.js @@ -1,14 +1,3 @@ -/* - * jQuery @VERSION - New Wave Javascript - * - * Copyright (c) 2008 John Resig (jquery.com) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * $Date$ - * $Rev$ - */ - var // Will speed up references to window, and allows munging its name. window = this, diff --git a/src/intro.js b/src/intro.js index af50383e..f286767b 100644 --- a/src/intro.js +++ b/src/intro.js @@ -1 +1,12 @@ +/*! + * jQuery JavaScript Library v@VERSION + * http://jquery.com/ + * + * Copyright (c) 2009 John Resig + * Dual licensed under the MIT and GPL licenses. + * http://docs.jquery.com/License + * + * Date: + * Revision: + */ (function(){