Simplified getting the commit date using git log --pretty. Fixed missing date in ant build.

This commit is contained in:
Richard D. Worth 2010-04-08 09:06:46 +08:00 committed by John Resig
parent 2e10af143b
commit 4ec1b743a8
2 changed files with 4 additions and 1 deletions

View file

@ -32,7 +32,7 @@ VER = sed s/@VERSION/${JQ_VER}/
RHINO = java -jar ${BUILD_DIR}/js.jar
MINJAR = java -jar ${BUILD_DIR}/google-compiler-20091218.jar
DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
DATE=`git log -1 --pretty=format:%ad`
all: jquery lint min
@@echo "jQuery build complete."