aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--build.xml3
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 612fce1c3..ade631968 100644
--- a/Makefile
+++ b/Makefile
@@ -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."
diff --git a/build.xml b/build.xml
index 0aeb476d0..ebbcdbe77 100644
--- a/build.xml
+++ b/build.xml
@@ -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>