-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir="." name="bazga-csl"> | ||
<tstamp> | ||
<format property="ant.tstamp.now.iso" pattern="yyyy-MM-dd'T'HH:mm:ssXXX"/> | ||
</tstamp> | ||
<exec command="git log -1 --pretty='format:%aI' src/bazga.csl" outputproperty="csl-mod.tstamp.iso"/> | ||
<target name="props"> | ||
<echo message="${TSTAMP}"></echo> | ||
<echo message="${DSTAMP}"></echo> | ||
<echo message="${TODAY}"></echo> | ||
<echo message="${ant.tstamp.now.iso}"></echo> | ||
<echo message="${csl-mod.tstamp.iso}"></echo> | ||
</target> | ||
<target name="build" depends="clean"> | ||
<mkdir dir="build"/> | ||
<copy todir="build" force="true" > | ||
<file file="src/bazga.csl" /> | ||
<filterset begintoken="@" endtoken="@"> | ||
<filter token="DATE.PUBLICATION" value="${ant.tstamp.now.iso}"/> | ||
<filter token="DATE.LAST-MOD" value="${csl-mod.tstamp.iso}"/> | ||
</filterset> | ||
</copy> | ||
</target> | ||
<target name="clean"> | ||
<delete dir="build"/> | ||
</target> | ||
</project> |