Skip to content
Permalink
Browse files

Simplified getting the commit date using git log --pretty. Fixed miss…

…ing date in ant build.
  • Loading branch information...
rdworth authored and jeresig committed Apr 8, 2010
1 parent 2e10af1 commit 4ec1b743a81256ae15907e46260cfc8edc6f06b8
Showing with 4 additions and 1 deletion.
  1. +1 −1 Makefile
  2. +3 −0 build.xml
@@ -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."
@@ -60,6 +60,9 @@
<fileset file="src/outro.js" />
</concat>
<replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
<exec executable="git" outputproperty="date">
<arg line="log -1 --pretty=format:%ad"/>
</exec>
<replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
<echo message="${JQ} built." />
</target>

0 comments on commit 4ec1b74

Please sign in to comment.
You can’t perform that action at this time.