5 DIST_DIR
= ${PREFIX}/dist
7 BASE_FILES
= ${SRC_DIR}/core.js\
10 ${SRC_DIR}/support.js\
11 ${SRC_DIR}/selector.js\
12 ${SRC_DIR}/traversing.js\
13 ${SRC_DIR}/attributes.js\
14 ${SRC_DIR}/manipulation.js\
19 ${SRC_DIR}/dimensions.js
21 MODULES
= ${SRC_DIR}/intro.js\
25 JQ
= ${DIST_DIR}/jquery.js
26 JQ_MIN
= ${DIST_DIR}/jquery.min.js
28 JQ_VER
= `cat version.txt`
29 VER
= sed s
/@VERSION
/${JQ_VER}/
31 MINJAR
= java
-jar
${BUILD_DIR}/yuicompressor-2.4
.2.jar
33 DATE
=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
36 @@echo
"jQuery build complete."
39 @@mkdir
-p
${DIST_DIR}
42 @@echo
"Grabbing external dependencies..."
44 @@git submodule update
45 @@cd src
/sizzle
&& git pull
origin master
46 @@cd
test/qunit
&& git pull
origin master
47 @@git submodule update
49 jquery
: ${DIST_DIR} selector
${JQ}
52 @@echo
"Building" ${JQ}
54 @@mkdir
-p
${DIST_DIR}
57 sed
's/Date:./&'"${DATE}"'/' | \
64 @@echo
"Building selector code from Sizzle"
65 @@sed
'/EXPOSE/r src/sizzle-jquery.js' src
/sizzle
/sizzle.js
> src
/selector.js
70 @@echo
"Building" ${JQ_MIN}
72 @@echo
" - Compressing using Minifier"
73 @@
${MINJAR} ${JQ} > ${JQ_MIN}
75 @@echo
${JQ_MIN} "Built"
79 @@echo
"Removing Distribution directory:" ${DIST_DIR}
82 @@echo
"Removing built copy of Sizzle"