Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
4ec1b743
Commit
4ec1b743
authored
Apr 08, 2010
by
Richard D. Worth
Committed by
John Resig
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified getting the commit date using git log --pretty. Fixed missing date in ant build.
parent
2e10af14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Makefile
Makefile
+1
-1
build.xml
build.xml
+3
-0
No files found.
Makefile
View file @
4ec1b743
...
@@ -32,7 +32,7 @@ VER = sed s/@VERSION/${JQ_VER}/
...
@@ -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."
...
...
build.xml
View file @
4ec1b743
...
@@ -60,6 +60,9 @@
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment