Moved the copyright to the intro file, added a ! so that it passes through YUIMin untouched, and changed the Date and Revision so that they're now generated automatically based upon all of jQuery rather than just the core file.
This commit is contained in:
parent
9472728bce
commit
192d6cd4a3
3 changed files with 19 additions and 12 deletions
9
Makefile
9
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue