aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorRichard D. Worth <rdworth@gmail.com>2010-04-08 09:06:46 +0800
committerJohn Resig <jeresig@gmail.com>2010-07-21 22:47:13 +0800
commit4ec1b743a81256ae15907e46260cfc8edc6f06b8 (patch)
treef3f7940935a9f74ac91386c498e7cca1c94e4ad6 /build.xml
parent2e10af143b7eafb7142524f6534a62aee1910bd1 (diff)
downloadjquery-4ec1b743a81256ae15907e46260cfc8edc6f06b8.tar.gz
jquery-4ec1b743a81256ae15907e46260cfc8edc6f06b8.zip
Simplified getting the commit date using git log --pretty. Fixed missing date in ant build.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml3
1 files changed, 3 insertions, 0 deletions
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>