mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Simplified getting the commit date using git log --pretty. Fixed missing date in ant build.
This commit is contained in:
parent
2e10af143b
commit
4ec1b743a8
2
Makefile
2
Makefile
@ -32,7 +32,7 @@ VER = sed s/@VERSION/${JQ_VER}/
|
|||||||
RHINO = java -jar ${BUILD_DIR}/js.jar
|
RHINO = java -jar ${BUILD_DIR}/js.jar
|
||||||
MINJAR = java -jar ${BUILD_DIR}/google-compiler-20091218.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
|
all: jquery lint min
|
||||||
@@echo "jQuery build complete."
|
@@echo "jQuery build complete."
|
||||||
|
@ -60,6 +60,9 @@
|
|||||||
<fileset file="src/outro.js" />
|
<fileset file="src/outro.js" />
|
||||||
</concat>
|
</concat>
|
||||||
<replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
|
<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}" />
|
<replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
|
||||||
<echo message="${JQ} built." />
|
<echo message="${JQ} built." />
|
||||||
</target>
|
</target>
|
||||||
|
Loading…
Reference in New Issue
Block a user